| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #elif defined(OS_POSIX) | 9 #elif defined(OS_POSIX) |
| 10 #include <sys/types.h> | 10 #include <sys/types.h> |
| 11 #include <unistd.h> | 11 #include <unistd.h> |
| 12 #endif | 12 #endif |
| 13 | 13 |
| 14 #include <utility> | 14 #include <utility> |
| 15 | 15 |
| 16 #include "ipc/ipc_test_base.h" | 16 #include "ipc/ipc_test_base.h" |
| 17 | 17 |
| 18 #include "base/command_line.h" | 18 #include "base/command_line.h" |
| 19 #include "base/debug/debug_on_start_win.h" | 19 #include "base/debug/debug_on_start_win.h" |
| 20 #include "base/threading/thread.h" | 20 #include "base/threading/thread.h" |
| 21 #include "base/time.h" | 21 #include "base/time.h" |
| 22 #include "ipc/ipc_descriptors.h" | 22 #include "ipc/ipc_descriptors.h" |
| 23 #include "ipc/ipc_channel.h" | 23 #include "ipc/ipc_channel.h" |
| 24 #include "ipc/ipc_channel_proxy.h" | 24 #include "ipc/ipc_channel_proxy.h" |
| 25 #include "ipc/ipc_message_utils.h" | 25 #include "ipc/ipc_message_utils.h" |
| 26 #include "ipc/ipc_multiprocess_test.h" | 26 #include "ipc/ipc_multiprocess_test.h" |
| 27 #include "ipc/ipc_sender.h" | 27 #include "ipc/ipc_sender.h" |
| 28 #include "ipc/ipc_switches.h" | 28 #include "ipc/ipc_switches.h" |
| 29 #include "testing/multiprocess_func_list.h" | |
| 30 | 29 |
| 31 const char kTestClientChannel[] = "T1"; | 30 const char kTestClientChannel[] = "T1"; |
| 32 const char kReflectorChannel[] = "T2"; | 31 const char kReflectorChannel[] = "T2"; |
| 33 const char kFuzzerChannel[] = "F3"; | 32 const char kFuzzerChannel[] = "F3"; |
| 34 const char kSyncSocketChannel[] = "S4"; | 33 const char kSyncSocketChannel[] = "S4"; |
| 35 | 34 |
| 36 void IPCTestBase::SetUp() { | 35 void IPCTestBase::SetUp() { |
| 37 MultiProcessTest::SetUp(); | 36 MultiProcessTest::SetUp(); |
| 38 | 37 |
| 39 // Construct a fresh IO Message loop for the duration of each test. | 38 // Construct a fresh IO Message loop for the duration of each test. |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 fds_to_map, | 111 fds_to_map, |
| 113 debug_on_start); | 112 debug_on_start); |
| 114 break; | 113 break; |
| 115 default: | 114 default: |
| 116 return base::kNullProcessHandle; | 115 return base::kNullProcessHandle; |
| 117 break; | 116 break; |
| 118 } | 117 } |
| 119 return ret; | 118 return ret; |
| 120 } | 119 } |
| 121 #endif // defined(OS_POSIX) | 120 #endif // defined(OS_POSIX) |
| OLD | NEW |