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

Unified Diff: ipc/ipc_channel_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_channel_posix_unittest.cc ('k') | ipc/ipc_channel_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_unittest.cc
diff --git a/ipc/ipc_channel_unittest.cc b/ipc/ipc_channel_unittest.cc
index db9dd3c47ab8fdf1d3c554264210e41d35a95917..21507bf214ba5b4831e8bcbd905b2f85047e8454 100644
--- a/ipc/ipc_channel_unittest.cc
+++ b/ipc/ipc_channel_unittest.cc
@@ -65,7 +65,7 @@ class GenericChannelListener : public IPC::Listener {
virtual void OnChannelError() OVERRIDE {
// There is a race when closing the channel so the last message may be lost.
EXPECT_LE(messages_left_, 1);
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
void Init(IPC::Sender* s) {
@@ -75,7 +75,7 @@ class GenericChannelListener : public IPC::Listener {
protected:
void SendNextMessage() {
if (--messages_left_ <= 0)
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
else
Send(sender_, "Foo");
}
@@ -133,7 +133,7 @@ TEST_F(IPCChannelTest, ChannelTest) {
Send(sender(), "hello from parent");
// Run message loop.
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
// Close the channel so the client's OnChannelError() gets fired.
channel()->Close();
@@ -172,7 +172,7 @@ TEST_F(IPCChannelTest, ChannelTestExistingPipe) {
Send(sender(), "hello from parent");
// Run message loop.
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
// Close the channel so the client's OnChannelError() gets fired.
channel()->Close();
@@ -187,7 +187,7 @@ TEST_F(IPCChannelTest, ChannelProxyTest) {
base::Thread thread("ChannelProxyTestServer");
base::Thread::Options options;
- options.message_loop_type = MessageLoop::TYPE_IO;
+ options.message_loop_type = base::MessageLoop::TYPE_IO;
thread.StartWithOptions(options);
// Set up IPC channel proxy.
@@ -200,7 +200,7 @@ TEST_F(IPCChannelTest, ChannelProxyTest) {
Send(sender(), "hello from parent");
// Run message loop.
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
EXPECT_TRUE(WaitForClientShutdown());
@@ -240,7 +240,7 @@ TEST_F(IPCChannelTest, MAYBE_SendMessageInChannelConnected) {
Send(sender(), "hello from parent");
// Run message loop.
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
// Close the channel so the client's OnChannelError() gets fired.
channel()->Close();
@@ -250,7 +250,7 @@ TEST_F(IPCChannelTest, MAYBE_SendMessageInChannelConnected) {
}
MULTIPROCESS_IPC_TEST_CLIENT_MAIN(GenericClient) {
- MessageLoopForIO main_message_loop;
+ base::MessageLoopForIO main_message_loop;
GenericChannelListener listener;
// Set up IPC channel.
@@ -261,7 +261,7 @@ MULTIPROCESS_IPC_TEST_CLIENT_MAIN(GenericClient) {
listener.Init(&channel);
Send(&channel, "hello from child");
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
return 0;
}
« 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