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

Unified Diff: ipc/sync_socket_unittest.cc

Issue 14383024: ipc: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ipc/ipc_test_base.cc ('k') | ipc/unix_domain_socket_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/sync_socket_unittest.cc
diff --git a/ipc/sync_socket_unittest.cc b/ipc/sync_socket_unittest.cc
index 5555abbc343c8c9c5077388163ee82f2bf4c30e1..d9feac6d40cc74b9db3b51a54c4e0156272e83bb 100644
--- a/ipc/sync_socket_unittest.cc
+++ b/ipc/sync_socket_unittest.cc
@@ -96,7 +96,7 @@ class SyncSocketServerListener : public IPC::Listener {
// When the client responds, it sends back a shutdown message,
// which causes the message loop to exit.
void OnMsgClassShutdown() {
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
IPC::Channel* chan_;
@@ -107,14 +107,14 @@ class SyncSocketServerListener : public IPC::Listener {
// Runs the fuzzing server child mode. Returns when the preset number of
// messages have been received.
MULTIPROCESS_IPC_TEST_CLIENT_MAIN(SyncSocketServerClient) {
- MessageLoopForIO main_message_loop;
+ base::MessageLoopForIO main_message_loop;
SyncSocketServerListener listener;
IPC::Channel channel(IPCTestBase::GetChannelName("SyncSocketServerClient"),
IPC::Channel::MODE_CLIENT,
&listener);
EXPECT_TRUE(channel.Connect());
listener.Init(&channel);
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
return 0;
}
@@ -154,7 +154,7 @@ class SyncSocketClientListener : public IPC::Listener {
EXPECT_EQ(0U, socket_->Peek());
IPC::Message* msg = new MsgClassShutdown();
EXPECT_TRUE(chan_->Send(msg));
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
base::SyncSocket* socket_;
@@ -198,7 +198,7 @@ TEST_F(SyncSocketTest, SanityTest) {
#endif // defined(OS_WIN)
EXPECT_TRUE(sender()->Send(msg));
// Use the current thread as the I/O thread.
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
// Shut down.
pair[0].Close();
pair[1].Close();
« no previous file with comments | « ipc/ipc_test_base.cc ('k') | ipc/unix_domain_socket_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698