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

Unified Diff: ipc/ipc_channel_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_channel_proxy_unittest.cc ('k') | ipc/ipc_fuzzing_tests.cc » ('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 e423b896475b78b08255ded8d715a4c779a41522..f5ee2061006427f30cd8cc0283e2277f0a30aa2a 100644
--- a/ipc/ipc_channel_unittest.cc
+++ b/ipc/ipc_channel_unittest.cc
@@ -14,6 +14,7 @@
#include <string>
#include "base/pickle.h"
+#include "base/run_loop.h"
#include "base/strings/string16.h"
#include "base/strings/utf_string_conversions.h"
#include "base/threading/thread.h"
@@ -38,7 +39,7 @@ TEST_F(IPCChannelTest, ChannelTest) {
IPC::TestChannelListener::SendOneMessage(sender(), "hello from parent");
// Run message loop.
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
// Close the channel so the client's OnChannelError() gets fired.
channel()->Close();
@@ -105,7 +106,7 @@ TEST_F(IPCChannelTest, ChannelProxyTest) {
IPC::TestChannelListener::SendOneMessage(sender(), "hello from parent");
// Run message loop.
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
EXPECT_TRUE(WaitForClientShutdown());
@@ -145,7 +146,7 @@ TEST_F(IPCChannelTest, MAYBE_SendMessageInChannelConnected) {
IPC::TestChannelListener::SendOneMessage(sender(), "hello from parent");
// Run message loop.
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
// Close the channel so the client's OnChannelError() gets fired.
channel()->Close();
@@ -165,7 +166,7 @@ MULTIPROCESS_IPC_TEST_CLIENT_MAIN(GenericClient) {
listener.Init(channel.get());
IPC::TestChannelListener::SendOneMessage(channel.get(), "hello from child");
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
return 0;
}
« no previous file with comments | « ipc/ipc_channel_proxy_unittest.cc ('k') | ipc/ipc_fuzzing_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698