diff options
author | ki.stfu <ki.stfu@gmail.com> | 2015-10-12 13:10:06 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-12 20:10:46 +0000 |
commit | 659c758f070333905acee302474fb4bc2ce1ba46 (patch) | |
tree | e9befb9bfa5d3e9d50bc180a842563e0294c229d /remoting/protocol/monitored_video_stub_unittest.cc | |
parent | aa33a9648c5684a43564294d35dd18ee056806c5 (diff) | |
download | chromium_src-659c758f070333905acee302474fb4bc2ce1ba46.zip chromium_src-659c758f070333905acee302474fb4bc2ce1ba46.tar.gz chromium_src-659c758f070333905acee302474fb4bc2ce1ba46.tar.bz2 |
Don't use base::MessageLoop::{Quit,QuitClosure} in remoting/
This patch renames base::MessageLoop::{Quit,QuitClosure} to
base::MessageLoop::{QuitWhenIdle,QuitWhenIdleClosure}.
BUG=131220
TEST=
R=joedow@chromium.org
Review URL: https://codereview.chromium.org/1394803004
Cr-Commit-Position: refs/heads/master@{#353583}
Diffstat (limited to 'remoting/protocol/monitored_video_stub_unittest.cc')
-rw-r--r-- | remoting/protocol/monitored_video_stub_unittest.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/remoting/protocol/monitored_video_stub_unittest.cc b/remoting/protocol/monitored_video_stub_unittest.cc index 448785a..58db106 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(); |