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

Unified Diff: remoting/protocol/monitored_video_stub_unittest.cc

Issue 2104363004: Remove remaining calls to deprecated MessageLoop methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR gab Created 4 years, 5 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 | « remoting/protocol/connection_tester.cc ('k') | remoting/protocol/negotiating_authenticator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « remoting/protocol/connection_tester.cc ('k') | remoting/protocol/negotiating_authenticator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698