| Index: remoting/protocol/monitored_video_stub_unittest.cc
|
| diff --git a/remoting/protocol/monitored_video_stub_unittest.cc b/remoting/protocol/monitored_video_stub_unittest.cc
|
| index 2b0499ae9485c7f9150c7604e5729f9c7c40f13d..06d7f1d8df41ef5ee9cf96bbafb285a6b4689deb 100644
|
| --- a/remoting/protocol/monitored_video_stub_unittest.cc
|
| +++ b/remoting/protocol/monitored_video_stub_unittest.cc
|
| @@ -10,6 +10,7 @@
|
|
|
| #include "base/message_loop/message_loop.h"
|
| #include "base/run_loop.h"
|
| +#include "base/single_thread_task_runner.h"
|
| #include "base/test/test_timeouts.h"
|
| #include "remoting/protocol/protocol_mock_objects.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| @@ -65,7 +66,7 @@ TEST_F(MonitoredVideoStubTest, OnChannelDisconnected) {
|
| EXPECT_CALL(*this, OnVideoChannelStatus(false))
|
| .WillOnce(
|
| InvokeWithoutArgs(&message_loop_, &base::MessageLoop::QuitWhenIdle));
|
| - message_loop_.Run();
|
| + base::RunLoop().Run();
|
| }
|
|
|
| TEST_F(MonitoredVideoStubTest, OnChannelStayConnected) {
|
| @@ -88,11 +89,11 @@ TEST_F(MonitoredVideoStubTest, OnChannelStayDisconnected) {
|
|
|
| monitor_->ProcessVideoPacket(std::move(packet_), base::Closure());
|
|
|
| - message_loop_.PostDelayedTask(
|
| + message_loop_.task_runner()->PostDelayedTask(
|
| FROM_HERE, base::MessageLoop::QuitWhenIdleClosure(),
|
| // The delay should be much greater than |kTestOverrideDelayMilliseconds|.
|
| TestTimeouts::tiny_timeout());
|
| - message_loop_.Run();
|
| + base::RunLoop().Run();
|
| }
|
|
|
| } // namespace protocol
|
|
|