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_channel_mojo.h" | 5 #include "ipc/ipc_channel_mojo.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/base_paths.h" | 12 #include "base/base_paths.h" |
13 #include "base/files/file.h" | 13 #include "base/files/file.h" |
14 #include "base/location.h" | 14 #include "base/location.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/pickle.h" | 16 #include "base/pickle.h" |
17 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
18 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
19 #include "base/test/test_io_thread.h" | 19 #include "base/test/test_io_thread.h" |
20 #include "base/test/test_timeouts.h" | 20 #include "base/test/test_timeouts.h" |
21 #include "base/threading/thread.h" | 21 #include "base/threading/thread.h" |
22 #include "base/threading/thread_task_runner_handle.h" | 22 #include "base/threading/thread_task_runner_handle.h" |
23 #include "build/build_config.h" | 23 #include "build/build_config.h" |
24 #include "ipc/ipc_message.h" | 24 #include "ipc/ipc_message.h" |
| 25 #include "ipc/ipc_mojo_handle_attachment.h" |
| 26 #include "ipc/ipc_mojo_message_helper.h" |
| 27 #include "ipc/ipc_mojo_param_traits.h" |
25 #include "ipc/ipc_test_base.h" | 28 #include "ipc/ipc_test_base.h" |
26 #include "ipc/ipc_test_channel_listener.h" | 29 #include "ipc/ipc_test_channel_listener.h" |
27 #include "ipc/mojo/ipc_channel_mojo.h" | |
28 #include "ipc/mojo/ipc_mojo_handle_attachment.h" | |
29 #include "ipc/mojo/ipc_mojo_message_helper.h" | |
30 #include "ipc/mojo/ipc_mojo_param_traits.h" | |
31 #include "mojo/edk/test/mojo_test_base.h" | 30 #include "mojo/edk/test/mojo_test_base.h" |
32 #include "mojo/edk/test/multiprocess_test_helper.h" | 31 #include "mojo/edk/test/multiprocess_test_helper.h" |
33 #include "testing/gtest/include/gtest/gtest.h" | 32 #include "testing/gtest/include/gtest/gtest.h" |
34 | 33 |
35 #if defined(OS_POSIX) | 34 #if defined(OS_POSIX) |
36 #include "base/file_descriptor_posix.h" | 35 #include "base/file_descriptor_posix.h" |
37 #include "ipc/ipc_platform_file_attachment_posix.h" | 36 #include "ipc/ipc_platform_file_attachment_posix.h" |
38 #endif | 37 #endif |
39 | 38 |
40 #define DEFINE_IPC_CHANNEL_MOJO_TEST_CLIENT(client_name, test_base) \ | 39 #define DEFINE_IPC_CHANNEL_MOJO_TEST_CLIENT(client_name, test_base) \ |
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 Connect(&listener); | 734 Connect(&listener); |
736 | 735 |
737 base::MessageLoop::current()->Run(); | 736 base::MessageLoop::current()->Run(); |
738 | 737 |
739 Close(); | 738 Close(); |
740 } | 739 } |
741 | 740 |
742 #endif // OS_LINUX | 741 #endif // OS_LINUX |
743 | 742 |
744 } // namespace | 743 } // namespace |
OLD | NEW |