blob: ab94ab6d03e683ad30962dae619ff58b59f06ef2 [file] [log] [blame] [edit]
// Copyright 2018 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <base/at_exit.h>
#include <base/task/single_thread_task_runner.h>
#include <brillo/message_loops/base_message_loop.h>
#include <brillo/test_helpers.h>
#include <mojo/core/embedder/embedder.h>
#include <mojo/core/embedder/scoped_ipc_support.h>
int main(int argc, char** argv) {
SetUpTests(&argc, argv, true);
base::AtExitManager at_exit;
(new brillo::BaseMessageLoop())->SetAsCurrent();
mojo::core::Init(
#if defined(ENABLE_IPCZ_ON_CHROMEOS)
mojo::core::Configuration{.is_broker_process = true}
#endif
);
mojo::core::ScopedIPCSupport _(
base::SingleThreadTaskRunner::GetCurrentDefault(),
mojo::core::ScopedIPCSupport::ShutdownPolicy::FAST);
return RUN_ALL_TESTS();
}