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

Unified Diff: content/renderer/media/media_stream_video_capturer_source_unittest.cc

Issue 2211473003: Remove calls to deprecated MessageLoop methods on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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
Index: content/renderer/media/media_stream_video_capturer_source_unittest.cc
diff --git a/content/renderer/media/media_stream_video_capturer_source_unittest.cc b/content/renderer/media/media_stream_video_capturer_source_unittest.cc
index 277d8f15a7ae204a02a3aee4fdf841bb82fd075b..182140462223c5caac845e802eb14b49e3c832e4 100644
--- a/content/renderer/media/media_stream_video_capturer_source_unittest.cc
+++ b/content/renderer/media/media_stream_video_capturer_source_unittest.cc
@@ -309,10 +309,10 @@ TEST_F(MediaStreamVideoCapturerSourceTest, Ended) {
EXPECT_CALL(mock_delegate(), GetCurrentSupportedFormats(_, _, _, _));
EXPECT_CALL(mock_delegate(), StartCapture(_, _, _));
blink::WebMediaStreamTrack track = StartSource();
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
OnStarted(true);
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
EXPECT_EQ(blink::WebMediaStreamSource::ReadyStateLive,
webkit_source_.getReadyState());
@@ -320,7 +320,7 @@ TEST_F(MediaStreamVideoCapturerSourceTest, Ended) {
EXPECT_CALL(mock_delegate(), StopCapture());
OnStarted(false);
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
EXPECT_EQ(blink::WebMediaStreamSource::ReadyStateEnded,
webkit_source_.getReadyState());
// Verify that MediaStreamSource::SourceStoppedCallback has been triggered.

Powered by Google App Engine
This is Rietveld 408576698