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 |