| 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/macros.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/process/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_factory.h" | 15 #include "ipc/ipc_channel_factory.h" |
| 16 #include "ipc/ipc_channel_proxy.h" | 16 #include "ipc/ipc_channel_proxy.h" |
| 17 #include "ipc/ipc_multiprocess_test.h" | 17 #include "ipc/ipc_multiprocess_test.h" |
| 18 | 18 |
| 19 namespace base { | 19 namespace base { |
| 20 class MessageLoop; | 20 class MessageLoop; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 base::Process client_process_; | 131 base::Process client_process_; |
| 132 | 132 |
| 133 DISALLOW_COPY_AND_ASSIGN(IPCTestBase); | 133 DISALLOW_COPY_AND_ASSIGN(IPCTestBase); |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 // Use this to declare the client side for tests using IPCTestBase. | 136 // Use this to declare the client side for tests using IPCTestBase. |
| 137 #define MULTIPROCESS_IPC_TEST_CLIENT_MAIN(test_client_name) \ | 137 #define MULTIPROCESS_IPC_TEST_CLIENT_MAIN(test_client_name) \ |
| 138 MULTIPROCESS_IPC_TEST_MAIN(test_client_name ## TestClientMain) | 138 MULTIPROCESS_IPC_TEST_MAIN(test_client_name ## TestClientMain) |
| 139 | 139 |
| 140 #endif // IPC_IPC_TEST_BASE_H_ | 140 #endif // IPC_IPC_TEST_BASE_H_ |
| OLD | NEW |