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/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/run_loop.h" | 13 #include "base/run_loop.h" |
14 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
16 #include "ipc/ipc.mojom.h" | 16 #include "ipc/ipc.mojom.h" |
17 #include "ipc/ipc_test_base.h" | 17 #include "ipc/ipc_test_base.h" |
18 #include "mojo/edk/embedder/embedder.h" | 18 #include "mojo/edk/embedder/embedder.h" |
19 #include "mojo/edk/test/mojo_test_base.h" | 19 #include "mojo/edk/test/mojo_test_base.h" |
20 #include "mojo/edk/test/multiprocess_test_helper.h" | 20 #include "mojo/edk/test/multiprocess_test_helper.h" |
21 #include "mojo/edk/test/scoped_ipc_support.h" | |
22 | 21 |
23 #if defined(OS_POSIX) | 22 #if defined(OS_POSIX) |
24 #include "base/file_descriptor_posix.h" | 23 #include "base/file_descriptor_posix.h" |
25 #endif | 24 #endif |
26 | 25 |
27 namespace { | 26 namespace { |
28 | 27 |
29 class IPCMojoBootstrapTest : public testing::Test { | 28 class IPCMojoBootstrapTest : public testing::Test { |
30 protected: | 29 protected: |
31 mojo::edk::test::MultiprocessTestHelper helper_; | 30 mojo::edk::test::MultiprocessTestHelper helper_; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 base::ThreadTaskRunnerHandle::Get()); | 82 base::ThreadTaskRunnerHandle::Get()); |
84 | 83 |
85 bootstrap->Connect(); | 84 bootstrap->Connect(); |
86 | 85 |
87 run_loop.Run(); | 86 run_loop.Run(); |
88 | 87 |
89 return delegate.passed() ? 0 : 1; | 88 return delegate.passed() ? 0 : 1; |
90 } | 89 } |
91 | 90 |
92 } // namespace | 91 } // namespace |
OLD | NEW |