Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: ipc/sync_socket_unittest.cc

Issue 3106018: Reapplies all the IPC system work (reverts the revert r56272). (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ipc/ipc_sync_channel_unittest.cc ('k') | printing/pdf_ps_metafile_cairo.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <stdio.h> 5 #include <stdio.h>
6 #include <string> 6 #include <string>
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #if defined(OS_LINUX) || defined(OS_MACOSX) 10 #if defined(OS_LINUX) || defined(OS_MACOSX)
11 #include "base/file_descriptor_posix.h" 11 #include "base/file_descriptor_posix.h"
12 #endif // defined(OS_LINUX) || defined(OS_MACOSX) 12 #endif // defined(OS_LINUX) || defined(OS_MACOSX)
13 #include "base/platform_thread.h" 13 #include "base/platform_thread.h"
14 #include "base/process_util.h" 14 #include "base/process_util.h"
15 #include "base/sync_socket.h" 15 #include "base/sync_socket.h"
16 #include "ipc/ipc_channel.h" 16 #include "ipc/ipc_channel.h"
17 #include "ipc/ipc_channel_proxy.h" 17 #include "ipc/ipc_channel_proxy.h"
18 #include "ipc/ipc_message_utils.h" 18 #include "ipc/ipc_message_utils.h"
19 #include "ipc/ipc_message_utils_impl.h"
19 #include "ipc/ipc_tests.h" 20 #include "ipc/ipc_tests.h"
20 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
21 #include "testing/multiprocess_func_list.h" 22 #include "testing/multiprocess_func_list.h"
22 23
23 24
24 // 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
25 // to get to the IPC macros. 26 // to get to the IPC macros.
26 #define MESSAGES_INTERNAL_FILE "ipc/ipc_sync_message_unittest.h" 27 #define MESSAGES_INTERNAL_FILE "ipc/ipc_sync_message_unittest.h"
27 #include "ipc/ipc_message_macros.h" 28 #include "ipc/ipc_message_macros.h"
28 29
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 #endif // defined(OS_WIN) 242 #endif // defined(OS_WIN)
242 EXPECT_TRUE(chan.Send(msg)); 243 EXPECT_TRUE(chan.Send(msg));
243 // Use the current thread as the I/O thread. 244 // Use the current thread as the I/O thread.
244 MessageLoop::current()->Run(); 245 MessageLoop::current()->Run();
245 // Shut down. 246 // Shut down.
246 delete pair[0]; 247 delete pair[0];
247 delete pair[1]; 248 delete pair[1];
248 EXPECT_TRUE(base::WaitForSingleProcess(server_process, 5000)); 249 EXPECT_TRUE(base::WaitForSingleProcess(server_process, 5000));
249 base::CloseProcessHandle(server_process); 250 base::CloseProcessHandle(server_process);
250 } 251 }
OLDNEW
« no previous file with comments | « ipc/ipc_sync_channel_unittest.cc ('k') | printing/pdf_ps_metafile_cairo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698