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

Unified Diff: media/filters/ffmpeg_demuxer_unittest.cc

Issue 2613623002: media: Continue aborting FFMpegDemuxerStream::Read() calls until Seek(). (Closed)
Patch Set: Created 3 years, 12 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/filters/ffmpeg_demuxer.cc ('k') | no next file » | 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 4225530af56ace84f41d510283508a68498d263f..eda7200254692718f1259907a8d1aa9d5bd37b71 100644
--- a/media/filters/ffmpeg_demuxer_unittest.cc
+++ b/media/filters/ffmpeg_demuxer_unittest.cc
@@ -437,6 +437,10 @@ TEST_F(FFmpegDemuxerTest, AbortPendingReads) {
demuxer_->AbortPendingReads();
base::RunLoop().Run();
+ // Additional reads should also be aborted (until a Seek()).
+ audio->Read(NewReadCB(FROM_HERE, 29, 0, true, DemuxerStream::kAborted));
+ base::RunLoop().Run();
+
// Ensure blocking thread has completed outstanding work.
demuxer_->Stop();
EXPECT_EQ(format_context()->pb->eof_reached, 0);
« no previous file with comments | « media/filters/ffmpeg_demuxer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698