OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ipc/mojo/ipc_mojo_bootstrap.h" | 5 #include "ipc/ipc_mojo_bootstrap.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/base_paths.h" | 10 #include "base/base_paths.h" |
11 #include "base/files/file.h" | 11 #include "base/files/file.h" |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "base/threading/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "ipc/ipc.mojom.h" |
15 #include "ipc/ipc_test_base.h" | 16 #include "ipc/ipc_test_base.h" |
16 #include "ipc/mojo/ipc.mojom.h" | |
17 #include "mojo/edk/embedder/embedder.h" | 17 #include "mojo/edk/embedder/embedder.h" |
18 #include "mojo/edk/test/mojo_test_base.h" | 18 #include "mojo/edk/test/mojo_test_base.h" |
19 #include "mojo/edk/test/multiprocess_test_helper.h" | 19 #include "mojo/edk/test/multiprocess_test_helper.h" |
20 #include "mojo/edk/test/scoped_ipc_support.h" | 20 #include "mojo/edk/test/scoped_ipc_support.h" |
21 | 21 |
22 #if defined(OS_POSIX) | 22 #if defined(OS_POSIX) |
23 #include "base/file_descriptor_posix.h" | 23 #include "base/file_descriptor_posix.h" |
24 #endif | 24 #endif |
25 | 25 |
26 namespace { | 26 namespace { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 IPC::Channel::MODE_CLIENT, &delegate); | 87 IPC::Channel::MODE_CLIENT, &delegate); |
88 | 88 |
89 bootstrap->Connect(); | 89 bootstrap->Connect(); |
90 | 90 |
91 run_loop.Run(); | 91 run_loop.Run(); |
92 | 92 |
93 return delegate.passed() ? 0 : 1; | 93 return delegate.passed() ? 0 : 1; |
94 } | 94 } |
95 | 95 |
96 } // namespace | 96 } // namespace |
OLD | NEW |