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

Side by Side Diff: ipc/ipc_channel_unittest.cc

Issue 19607005: Use a direct include of the message_loop header in dbus/, device/, extensions/, google_apis/, gpu/,… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | « ipc/ipc_channel_posix_unittest.cc ('k') | ipc/ipc_channel_win.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) 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 #endif 9 #endif
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/message_loop.h" 13 #include "base/message_loop/message_loop.h"
14 #include "base/pickle.h" 14 #include "base/pickle.h"
15 #include "base/threading/thread.h" 15 #include "base/threading/thread.h"
16 #include "ipc/ipc_message.h" 16 #include "ipc/ipc_message.h"
17 #include "ipc/ipc_test_base.h" 17 #include "ipc/ipc_test_base.h"
18 18
19 namespace { 19 namespace {
20 20
21 const size_t kLongMessageStringNumBytes = 50000; 21 const size_t kLongMessageStringNumBytes = 50000;
22 22
23 static void Send(IPC::Sender* sender, const char* text) { 23 static void Send(IPC::Sender* sender, const char* text) {
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 &listener); 259 &listener);
260 CHECK(channel.Connect()); 260 CHECK(channel.Connect());
261 listener.Init(&channel); 261 listener.Init(&channel);
262 Send(&channel, "hello from child"); 262 Send(&channel, "hello from child");
263 263
264 base::MessageLoop::current()->Run(); 264 base::MessageLoop::current()->Run();
265 return 0; 265 return 0;
266 } 266 }
267 267
268 } // namespace 268 } // namespace
OLDNEW
« no previous file with comments | « ipc/ipc_channel_posix_unittest.cc ('k') | ipc/ipc_channel_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698