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

Unified Diff: media/filters/video_frame_stream_unittest.cc

Issue 141243003: Add AudioBufferStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@decoderstream_rebased
Patch Set: Add unit test Created 6 years, 9 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: media/filters/video_frame_stream_unittest.cc
diff --git a/media/filters/video_frame_stream_unittest.cc b/media/filters/video_frame_stream_unittest.cc
index 0b10b03771824d4fa0f4f7be06cf9af836848666..d137af8a0856b7c4978e56ab53e2af7e91740ce4 100644
--- a/media/filters/video_frame_stream_unittest.cc
+++ b/media/filters/video_frame_stream_unittest.cc
@@ -342,6 +342,16 @@ TEST_P(VideoFrameStreamTest, ReadOneFrame) {
Read();
}
+// Test that we read any queued frames from the decoder before initiating a
+// new demuxer read.
+TEST_P(VideoFrameStreamTest, ReadFromDecoderQueue) {
+ Initialize();
+ decoder_->QueueRead();
+ EXPECT_EQ(decoder_->reads_queued(), 1);
+ Read();
+ EXPECT_EQ(decoder_->reads_queued(), 0);
+}
+
TEST_P(VideoFrameStreamTest, ReadAllFrames) {
Initialize();
do {
« media/filters/fake_video_decoder.cc ('K') | « media/filters/video_decoder_selector_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698