OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef IPC_IPC_TEST_BASE_H_ | 5 #ifndef IPC_IPC_TEST_BASE_H_ |
6 #define IPC_IPC_TEST_BASE_H_ | 6 #define IPC_IPC_TEST_BASE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/message_loop/message_loop.h" |
12 #include "base/process/process.h" | 13 #include "base/process/process.h" |
13 #include "base/test/multiprocess_test.h" | 14 #include "base/test/multiprocess_test.h" |
14 #include "build/build_config.h" | 15 #include "build/build_config.h" |
15 #include "ipc/ipc_channel.h" | 16 #include "ipc/ipc_channel.h" |
16 #include "ipc/ipc_channel_factory.h" | 17 #include "ipc/ipc_channel_factory.h" |
17 #include "ipc/ipc_channel_proxy.h" | 18 #include "ipc/ipc_channel_proxy.h" |
18 #include "mojo/edk/test/mojo_test_base.h" | 19 #include "mojo/edk/test/mojo_test_base.h" |
19 #include "mojo/edk/test/multiprocess_test_helper.h" | 20 #include "mojo/edk/test/multiprocess_test_helper.h" |
20 | 21 |
21 namespace base { | 22 namespace base { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 : 0; \ | 102 : 0; \ |
102 } \ | 103 } \ |
103 void client_name##_MainFixture::Main() | 104 void client_name##_MainFixture::Main() |
104 | 105 |
105 // Use this to declare the client side for tests using IPCChannelMojoTestBase. | 106 // Use this to declare the client side for tests using IPCChannelMojoTestBase. |
106 #define DEFINE_IPC_CHANNEL_MOJO_TEST_CLIENT(client_name) \ | 107 #define DEFINE_IPC_CHANNEL_MOJO_TEST_CLIENT(client_name) \ |
107 DEFINE_IPC_CHANNEL_MOJO_TEST_CLIENT_WITH_CUSTOM_FIXTURE( \ | 108 DEFINE_IPC_CHANNEL_MOJO_TEST_CLIENT_WITH_CUSTOM_FIXTURE( \ |
108 client_name, IpcChannelMojoTestClient) | 109 client_name, IpcChannelMojoTestClient) |
109 | 110 |
110 #endif // IPC_IPC_TEST_BASE_H_ | 111 #endif // IPC_IPC_TEST_BASE_H_ |
OLD | NEW |