Michael Martis | a967f63 | 2018-08-10 10:39:00 +1000 | [diff] [blame] | 1 | // 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 | |
| 5 | #include <base/command_line.h> |
| 6 | #include <base/threading/thread_task_runner_handle.h> |
| 7 | #include <brillo/flag_helper.h> |
| 8 | #include <brillo/message_loops/base_message_loop.h> |
| 9 | #include <brillo/test_helpers.h> |
| 10 | #include <mojo/edk/embedder/embedder.h> |
Michael Martis | a967f63 | 2018-08-10 10:39:00 +1000 | [diff] [blame] | 11 | |
| 12 | int main(int argc, char** argv) { |
| 13 | SetUpTests(&argc, argv, true); |
| 14 | |
| 15 | (new brillo::BaseMessageLoop())->SetAsCurrent(); |
| 16 | |
| 17 | mojo::edk::Init(); |
Hidehiko Abe | 8ab64a6 | 2018-09-19 00:04:39 +0900 | [diff] [blame^] | 18 | mojo::edk::InitIPCSupport(base::ThreadTaskRunnerHandle::Get()); |
Michael Martis | a967f63 | 2018-08-10 10:39:00 +1000 | [diff] [blame] | 19 | |
| 20 | return RUN_ALL_TESTS(); |
| 21 | } |