| 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 448785a0313c581bfa894ef6f690420410eee47f..58db106521fa677f8560b71d92042ecf888ba6ff 100644
|
| --- a/remoting/protocol/monitored_video_stub_unittest.cc
|
| +++ b/remoting/protocol/monitored_video_stub_unittest.cc
|
| @@ -58,10 +58,9 @@ TEST_F(MonitoredVideoStubTest, OnChannelDisconnected) {
|
| EXPECT_CALL(*this, OnVideoChannelStatus(true));
|
| monitor_->ProcessVideoPacket(packet_.Pass(), base::Closure());
|
|
|
| - EXPECT_CALL(*this, OnVideoChannelStatus(false)).WillOnce(
|
| - InvokeWithoutArgs(
|
| - &message_loop_,
|
| - &base::MessageLoop::Quit));
|
| + EXPECT_CALL(*this, OnVideoChannelStatus(false))
|
| + .WillOnce(
|
| + InvokeWithoutArgs(&message_loop_, &base::MessageLoop::QuitWhenIdle));
|
| message_loop_.Run();
|
| }
|
|
|
| @@ -86,8 +85,7 @@ TEST_F(MonitoredVideoStubTest, OnChannelStayDisconnected) {
|
| monitor_->ProcessVideoPacket(packet_.Pass(), base::Closure());
|
|
|
| message_loop_.PostDelayedTask(
|
| - FROM_HERE,
|
| - base::MessageLoop::QuitClosure(),
|
| + FROM_HERE, base::MessageLoop::QuitWhenIdleClosure(),
|
| // The delay should be much greater than |kTestOverrideDelayMilliseconds|.
|
| TestTimeouts::tiny_timeout());
|
| message_loop_.Run();
|
|
|