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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/process.h" | 12 #include "base/process/process.h" |
13 #include "base/test/multiprocess_test.h" | 13 #include "base/test/multiprocess_test.h" |
14 #include "ipc/ipc_channel.h" | 14 #include "ipc/ipc_channel.h" |
15 #include "ipc/ipc_channel_proxy.h" | 15 #include "ipc/ipc_channel_proxy.h" |
16 #include "ipc/ipc_multiprocess_test.h" | 16 #include "ipc/ipc_multiprocess_test.h" |
17 | 17 |
18 namespace base { | 18 namespace base { |
19 class MessageLoopForIO; | 19 class MessageLoopForIO; |
20 } | 20 } |
21 | 21 |
22 // A test fixture for multiprocess IPC tests. Such tests include a "client" side | 22 // A test fixture for multiprocess IPC tests. Such tests include a "client" side |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 base::ProcessHandle client_process_; | 92 base::ProcessHandle client_process_; |
93 | 93 |
94 DISALLOW_COPY_AND_ASSIGN(IPCTestBase); | 94 DISALLOW_COPY_AND_ASSIGN(IPCTestBase); |
95 }; | 95 }; |
96 | 96 |
97 // Use this to declare the client side for tests using IPCTestBase. | 97 // Use this to declare the client side for tests using IPCTestBase. |
98 #define MULTIPROCESS_IPC_TEST_CLIENT_MAIN(test_client_name) \ | 98 #define MULTIPROCESS_IPC_TEST_CLIENT_MAIN(test_client_name) \ |
99 MULTIPROCESS_IPC_TEST_MAIN(test_client_name ## TestClientMain) | 99 MULTIPROCESS_IPC_TEST_MAIN(test_client_name ## TestClientMain) |
100 | 100 |
101 #endif // IPC_IPC_TEST_BASE_H_ | 101 #endif // IPC_IPC_TEST_BASE_H_ |
OLD | NEW |