| 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;
|
| }
|
|
|
|
|