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

Unified Diff: ipc/mojo/ipc_channel_mojo_unittest.cc

Issue 2087163003: Remove calls to deprecated MessageLoop methods in ipc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: manual changes Created 4 years, 6 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_sync_channel_unittest.cc ('k') | ipc/sync_socket_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/mojo/ipc_channel_mojo_unittest.cc
diff --git a/ipc/mojo/ipc_channel_mojo_unittest.cc b/ipc/mojo/ipc_channel_mojo_unittest.cc
index 744d37c836f000b73e2c7345285005d533edcf97..ce1dbb18e5a76334a8d3c99b93dcd289545c39b3 100644
--- a/ipc/mojo/ipc_channel_mojo_unittest.cc
+++ b/ipc/mojo/ipc_channel_mojo_unittest.cc
@@ -182,7 +182,7 @@ TEST_F(IPCChannelMojoTest, ConnectedFromClient) {
IPC::TestChannelListener::SendOneMessage(sender(), "hello from parent");
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
channel()->Close();
@@ -200,7 +200,7 @@ DEFINE_IPC_CHANNEL_MOJO_TEST_CLIENT(IPCChannelMojoTestClient, ChannelClient) {
listener.Init(channel());
IPC::TestChannelListener::SendOneMessage(channel(), "hello from child");
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
EXPECT_TRUE(listener.is_connected_called());
EXPECT_TRUE(listener.HasSentAll());
@@ -245,7 +245,7 @@ DEFINE_IPC_CHANNEL_MOJO_TEST_CLIENT(IPCChannelMojoErraticTestClient,
ListenerThatQuits listener;
Connect(&listener);
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
Close();
}
@@ -267,7 +267,7 @@ TEST_F(IPCChannelMojoTest, SendFailWithPendingMessages) {
overly_large_data.c_str());
}
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
channel()->Close();
@@ -407,7 +407,7 @@ TEST_F(IPCChannelMojoTest, SendMessagePipe) {
TestingMessagePipe pipe;
HandleSendingHelper::WritePipeThenSend(channel(), &pipe);
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
channel()->Close();
EXPECT_TRUE(WaitForClientShutdown());
@@ -420,7 +420,7 @@ DEFINE_IPC_CHANNEL_MOJO_TEST_CLIENT(IPCChannelMojoTestSendMessagePipeClient,
Connect(&listener);
listener.set_sender(channel());
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
Close();
}
@@ -484,7 +484,7 @@ class ParamTraitMessagePipeClient : public ChannelClient {
Connect(&listener);
listener.set_sender(channel());
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
Close();
}
@@ -505,7 +505,7 @@ TEST_F(IPCChannelMojoTest, ParamTraitValidMessagePipe) {
WriteOK(pipe.self.get());
channel()->Send(message.release());
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
channel()->Close();
EXPECT_TRUE(WaitForClientShutdown());
@@ -530,7 +530,7 @@ TEST_F(IPCChannelMojoTest, ParamTraitInvalidMessagePipe) {
invalid_handle);
channel()->Send(message.release());
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
channel()->Close();
EXPECT_TRUE(WaitForClientShutdown());
@@ -549,7 +549,7 @@ TEST_F(IPCChannelMojoTest, SendFailAfterClose) {
CreateChannel(&listener);
ASSERT_TRUE(ConnectChannel());
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
channel()->Close();
ASSERT_FALSE(channel()->Send(new IPC::Message()));
@@ -580,7 +580,7 @@ DEFINE_IPC_CHANNEL_MOJO_TEST_CLIENT(IPCChannelMojoTestSendOkClient,
Connect(&listener);
listener.set_sender(channel());
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
Close();
}
@@ -620,7 +620,7 @@ TEST_F(IPCChannelMojoTest, SendPlatformHandle) {
base::File::FLAG_CREATE_ALWAYS | base::File::FLAG_WRITE |
base::File::FLAG_READ);
HandleSendingHelper::WriteFileThenSend(channel(), file);
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
channel()->Close();
@@ -634,7 +634,7 @@ DEFINE_IPC_CHANNEL_MOJO_TEST_CLIENT(IPCChannelMojoTestSendPlatformHandleClient,
Connect(&listener);
listener.set_sender(channel());
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
Close();
}
@@ -676,7 +676,7 @@ TEST_F(IPCChannelMojoTest, SendPlatformHandleAndPipe) {
TestingMessagePipe pipe;
HandleSendingHelper::WriteFileAndPipeThenSend(channel(), file, &pipe);
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
channel()->Close();
EXPECT_TRUE(WaitForClientShutdown());
@@ -690,7 +690,7 @@ DEFINE_IPC_CHANNEL_MOJO_TEST_CLIENT(
Connect(&listener);
listener.set_sender(channel());
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
Close();
}
« no previous file with comments | « ipc/ipc_sync_channel_unittest.cc ('k') | ipc/sync_socket_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698