| 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/macros.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 "build/build_config.h" | 
| 14 #include "ipc/ipc_channel.h" | 15 #include "ipc/ipc_channel.h" | 
| 15 #include "ipc/ipc_channel_factory.h" | 16 #include "ipc/ipc_channel_factory.h" | 
| 16 #include "ipc/ipc_channel_proxy.h" | 17 #include "ipc/ipc_channel_proxy.h" | 
| 17 #include "ipc/ipc_multiprocess_test.h" | 18 #include "ipc/ipc_multiprocess_test.h" | 
| 18 | 19 | 
| 19 namespace base { | 20 namespace base { | 
| 20 class MessageLoop; | 21 class MessageLoop; | 
| 21 } | 22 } | 
| 22 | 23 | 
| 23 namespace IPC { | 24 namespace IPC { | 
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 124   base::Process client_process_; | 125   base::Process client_process_; | 
| 125 | 126 | 
| 126   DISALLOW_COPY_AND_ASSIGN(IPCTestBase); | 127   DISALLOW_COPY_AND_ASSIGN(IPCTestBase); | 
| 127 }; | 128 }; | 
| 128 | 129 | 
| 129 // Use this to declare the client side for tests using IPCTestBase. | 130 // Use this to declare the client side for tests using IPCTestBase. | 
| 130 #define MULTIPROCESS_IPC_TEST_CLIENT_MAIN(test_client_name) \ | 131 #define MULTIPROCESS_IPC_TEST_CLIENT_MAIN(test_client_name) \ | 
| 131     MULTIPROCESS_IPC_TEST_MAIN(test_client_name ## TestClientMain) | 132     MULTIPROCESS_IPC_TEST_MAIN(test_client_name ## TestClientMain) | 
| 132 | 133 | 
| 133 #endif  // IPC_IPC_TEST_BASE_H_ | 134 #endif  // IPC_IPC_TEST_BASE_H_ | 
| OLD | NEW | 
|---|