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

Side by Side Diff: ipc/ipc_channel_unittest.cc

Issue 11858023: More IPC test header cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ipc/ipc_fuzzing_tests.cc » ('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) 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 <stdio.h> 14 #include <stdio.h>
15 #include <string> 15 #include <string>
16 #include <utility> 16 #include <utility>
17 17
18 #include "base/command_line.h" 18 #include "base/command_line.h"
19 #include "base/pickle.h" 19 #include "base/pickle.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 "ipc/ipc_test_base.h" 29 #include "ipc/ipc_test_base.h"
30 #include "testing/multiprocess_func_list.h"
31 30
32 namespace { 31 namespace {
33 32
34 const size_t kLongMessageStringNumBytes = 50000; 33 const size_t kLongMessageStringNumBytes = 50000;
35 34
36 class IPCChannelTest : public IPCTestBase { 35 class IPCChannelTest : public IPCTestBase {
37 }; 36 };
38 37
39 TEST_F(IPCChannelTest, BasicMessageTest) { 38 TEST_F(IPCChannelTest, BasicMessageTest) {
40 int v1 = 10; 39 int v1 = 10;
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 &channel_listener); 325 &channel_listener);
327 CHECK(chan.Connect()); 326 CHECK(chan.Connect());
328 channel_listener.Init(&chan); 327 channel_listener.Init(&chan);
329 Send(&chan, "hello from child"); 328 Send(&chan, "hello from child");
330 // run message loop 329 // run message loop
331 MessageLoop::current()->Run(); 330 MessageLoop::current()->Run();
332 return 0; 331 return 0;
333 } 332 }
334 333
335 } // namespace 334 } // namespace
OLDNEW
« no previous file with comments | « no previous file | ipc/ipc_fuzzing_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698