blob: 79781a4514c97202990d26b66cf8a3a3fccbb073 [file] [log] [blame]
Michael Martisa967f632018-08-10 10:39:00 +10001// Copyright 2018 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Hidehiko Abe7ac22bb2018-11-08 00:29:25 +09005#include <base/at_exit.h>
Michael Martisa967f632018-08-10 10:39:00 +10006#include <base/command_line.h>
7#include <base/threading/thread_task_runner_handle.h>
8#include <brillo/flag_helper.h>
9#include <brillo/message_loops/base_message_loop.h>
10#include <brillo/test_helpers.h>
11#include <mojo/edk/embedder/embedder.h>
Michael Martisa967f632018-08-10 10:39:00 +100012
13int main(int argc, char** argv) {
14 SetUpTests(&argc, argv, true);
Hidehiko Abe7ac22bb2018-11-08 00:29:25 +090015 base::AtExitManager at_exit;
Michael Martisa967f632018-08-10 10:39:00 +100016
17 (new brillo::BaseMessageLoop())->SetAsCurrent();
18
19 mojo::edk::Init();
Hidehiko Abe8ab64a62018-09-19 00:04:39 +090020 mojo::edk::InitIPCSupport(base::ThreadTaskRunnerHandle::Get());
Michael Martisa967f632018-08-10 10:39:00 +100021
22 return RUN_ALL_TESTS();
23}