Index: media/filters/pipeline_integration_test.cc |
diff --git a/media/filters/pipeline_integration_test.cc b/media/filters/pipeline_integration_test.cc |
index 3b456a1b752ce8dbb70d0189ccf42e8ba6aa178a..c79183034cbb2d9516cbbceb4236f72cb008d4aa 100644 |
--- a/media/filters/pipeline_integration_test.cc |
+++ b/media/filters/pipeline_integration_test.cc |
@@ -54,6 +54,7 @@ static const int k640IsoFileDurationMs = 2737; |
static const int k640IsoCencFileDurationMs = 2736; |
static const int k1280IsoFileDurationMs = 2736; |
static const int kVP9WebMFileDurationMs = 2736; |
+static const int kVP8AWebMFileDurationMs = 2700; |
// Note: Tests using this class only exercise the DecryptingDemuxerStream path. |
// They do not exercise the Decrypting{Audio|Video}Decoder path. |
@@ -481,6 +482,23 @@ TEST_F(PipelineIntegrationTest, BasicPlayback_MediaSource_VideoOnly_VP9_WebM) { |
Stop(); |
} |
+TEST_F(PipelineIntegrationTest, BasicPlayback_MediaSource_VP8A_WebM) { |
+ MockMediaSource source("bear-vp8a.webm", kVideoOnlyWebM, kAppendWholeFile); |
+ StartPipelineWithMediaSource(&source); |
+ source.EndOfStream(); |
+ |
+ EXPECT_EQ(1u, pipeline_->GetBufferedTimeRanges().size()); |
+ EXPECT_EQ(0, pipeline_->GetBufferedTimeRanges().start(0).InMilliseconds()); |
+ EXPECT_EQ(kVP8AWebMFileDurationMs, |
+ pipeline_->GetBufferedTimeRanges().end(0).InMilliseconds()); |
+ |
+ Play(); |
+ |
+ ASSERT_TRUE(WaitUntilOnEnded()); |
+ source.Abort(); |
+ Stop(); |
+} |
+ |
TEST_F(PipelineIntegrationTest, MediaSource_ConfigChange_WebM) { |
MockMediaSource source("bear-320x240-16x9-aspect.webm", kWebM, |
kAppendWholeFile); |