OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "base/sync_socket.h" | |
6 | |
7 #include <stdio.h> | 5 #include <stdio.h> |
8 #include <string> | 6 #include <string> |
9 #include <sstream> | 7 #include <sstream> |
10 | 8 |
11 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
12 #if defined(OS_LINUX) || defined(OS_MACOSX) | 10 #if defined(OS_LINUX) || defined(OS_MACOSX) |
13 #include "base/file_descriptor_posix.h" | 11 #include "base/file_descriptor_posix.h" |
14 #endif // defined(OS_LINUX) || defined(OS_MACOSX) | 12 #endif // defined(OS_LINUX) || defined(OS_MACOSX) |
15 #include "base/platform_thread.h" | 13 #include "base/platform_thread.h" |
16 #include "base/process_util.h" | 14 #include "base/process_util.h" |
| 15 #include "base/sync_socket.h" |
17 #include "ipc/ipc_channel.h" | 16 #include "ipc/ipc_channel.h" |
18 #include "ipc/ipc_channel_proxy.h" | 17 #include "ipc/ipc_channel_proxy.h" |
19 #include "ipc/ipc_message_utils.h" | 18 #include "ipc/ipc_message_utils.h" |
20 #include "ipc/ipc_message_utils_impl.h" | 19 #include "ipc/ipc_message_utils_impl.h" |
21 #include "ipc/ipc_tests.h" | 20 #include "ipc/ipc_tests.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
23 #include "testing/multiprocess_func_list.h" | 22 #include "testing/multiprocess_func_list.h" |
24 | 23 |
25 | 24 |
26 // We don't actually use the messages defined in this file, but we do this | 25 // We don't actually use the messages defined in this file, but we do this |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 #endif // defined(OS_WIN) | 241 #endif // defined(OS_WIN) |
243 EXPECT_TRUE(chan.Send(msg)); | 242 EXPECT_TRUE(chan.Send(msg)); |
244 // Use the current thread as the I/O thread. | 243 // Use the current thread as the I/O thread. |
245 MessageLoop::current()->Run(); | 244 MessageLoop::current()->Run(); |
246 // Shut down. | 245 // Shut down. |
247 delete pair[0]; | 246 delete pair[0]; |
248 delete pair[1]; | 247 delete pair[1]; |
249 EXPECT_TRUE(base::WaitForSingleProcess(server_process, 5000)); | 248 EXPECT_TRUE(base::WaitForSingleProcess(server_process, 5000)); |
250 base::CloseProcessHandle(server_process); | 249 base::CloseProcessHandle(server_process); |
251 } | 250 } |
OLD | NEW |