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

Unified Diff: content/renderer/media/media_stream_video_renderer_sink_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_renderer_sink_unittest.cc
diff --git a/content/renderer/media/media_stream_video_renderer_sink_unittest.cc b/content/renderer/media/media_stream_video_renderer_sink_unittest.cc
index 258b7a7bb3913a386d586ea284d83574768445ca..79c91c3c69fe53a3facbe15213c723d048457adc 100644
--- a/content/renderer/media/media_stream_video_renderer_sink_unittest.cc
+++ b/content/renderer/media/media_stream_video_renderer_sink_unittest.cc
@@ -149,12 +149,12 @@ TEST_F(MediaStreamVideoRendererSinkAsyncAddFrameReadyTest,
const scoped_refptr<media::VideoFrame> video_frame =
media::VideoFrame::CreateBlackFrame(gfx::Size(160, 80));
OnVideoFrame(video_frame);
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
ASSERT_EQ(1u, frame_ready_cbs_.size());
EXPECT_CALL(*this, RepaintCallback(video_frame)).Times(1);
frame_ready_cbs_[0].Run();
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
media_stream_video_renderer_sink_->Stop();
}
@@ -190,7 +190,7 @@ TEST_F(MediaStreamVideoRendererSinkTransparencyTest,
media::VideoFrame::CreateFrame(media::PIXEL_FORMAT_YV12A, kSize,
gfx::Rect(kSize), kSize, kTimestamp);
OnVideoFrame(video_frame);
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
media_stream_video_renderer_sink_->Stop();
}

Powered by Google App Engine
This is Rietveld 408576698