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

Unified Diff: media/filters/ffmpeg_demuxer_unittest.cc

Issue 2132593002: Remove remaining calls to deprecated MessageLoop methods on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: h264_vt_encoder_unittest.cc 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 | « media/cast/sender/h264_vt_encoder_unittest.cc ('k') | media/test/pipeline_integration_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_demuxer_unittest.cc
diff --git a/media/filters/ffmpeg_demuxer_unittest.cc b/media/filters/ffmpeg_demuxer_unittest.cc
index 629205bc355d4fea38f7c1bcf71cf4284d6c1078..780876545cd5874846347e7ba037beacc64e4501 100644
--- a/media/filters/ffmpeg_demuxer_unittest.cc
+++ b/media/filters/ffmpeg_demuxer_unittest.cc
@@ -1077,7 +1077,7 @@ TEST_F(FFmpegDemuxerTest, IsValidAnnexB) {
stream->EnableBitstreamConverter();
stream->Read(base::Bind(&ValidateAnnexB, stream));
- message_loop_.Run();
+ base::RunLoop().Run();
demuxer_->Stop();
demuxer_.reset();
@@ -1152,10 +1152,10 @@ TEST_F(FFmpegDemuxerTest, HEVC_in_MP4_container) {
ASSERT_TRUE(video);
video->Read(NewReadCB(FROM_HERE, 3569, 66733, true));
- message_loop_.Run();
+ base::RunLoop().Run();
video->Read(NewReadCB(FROM_HERE, 1042, 200200, false));
- message_loop_.Run();
+ base::RunLoop().Run();
#else
InitializeDemuxerAndExpectPipelineStatus(DEMUXER_ERROR_NO_SUPPORTED_STREAMS);
#endif
@@ -1171,10 +1171,10 @@ TEST_F(FFmpegDemuxerTest, Read_AC3_Audio) {
// Read the first two frames and check that we are getting expected data
audio->Read(NewReadCB(FROM_HERE, 834, 0, true));
- message_loop_.Run();
+ base::RunLoop().Run();
audio->Read(NewReadCB(FROM_HERE, 836, 34830, true));
- message_loop_.Run();
+ base::RunLoop().Run();
#else
InitializeDemuxerAndExpectPipelineStatus(DEMUXER_ERROR_NO_SUPPORTED_STREAMS);
#endif
@@ -1190,10 +1190,10 @@ TEST_F(FFmpegDemuxerTest, Read_EAC3_Audio) {
// Read the first two frames and check that we are getting expected data
audio->Read(NewReadCB(FROM_HERE, 870, 0, true));
- message_loop_.Run();
+ base::RunLoop().Run();
audio->Read(NewReadCB(FROM_HERE, 872, 34830, true));
- message_loop_.Run();
+ base::RunLoop().Run();
#else
InitializeDemuxerAndExpectPipelineStatus(DEMUXER_ERROR_NO_SUPPORTED_STREAMS);
#endif
« no previous file with comments | « media/cast/sender/h264_vt_encoder_unittest.cc ('k') | media/test/pipeline_integration_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698