| Index: media/filters/pipeline_integration_test.cc
|
| diff --git a/media/filters/pipeline_integration_test.cc b/media/filters/pipeline_integration_test.cc
|
| index ccbdd6dc9aadf240fc7033f4bd2a67ad72efef80..db0ce1214b86acb558579031d952886966957bc6 100644
|
| --- a/media/filters/pipeline_integration_test.cc
|
| +++ b/media/filters/pipeline_integration_test.cc
|
| @@ -238,6 +238,8 @@ class MockMediaSource {
|
| base::Unretained(this)),
|
| base::Bind(&MockMediaSource::DemuxerNeedKey,
|
| base::Unretained(this)),
|
| + base::Bind(&MockMediaSource::OnTextTrack,
|
| + base::Unretained(this)),
|
| LogCB())),
|
| owned_chunk_demuxer_(chunk_demuxer_) {
|
|
|
| @@ -325,6 +327,12 @@ class MockMediaSource {
|
| std::string(), std::string(), type, init_data.Pass(), init_data_size);
|
| }
|
|
|
| + scoped_ptr<TextTrack> OnTextTrack(TextKind kind,
|
| + const std::string& label,
|
| + const std::string& language) {
|
| + return scoped_ptr<TextTrack>();
|
| + }
|
| +
|
| private:
|
| base::FilePath file_path_;
|
| scoped_refptr<DecoderBuffer> file_data_;
|
| @@ -947,4 +955,12 @@ TEST_F(PipelineIntegrationTest, BasicPlayback_VP8A_WebM) {
|
| EXPECT_EQ(last_video_frame_format_, VideoFrame::YV12A);
|
| }
|
|
|
| +// Verify that VP8 video with inband text track can be played back.
|
| +TEST_F(PipelineIntegrationTest, BasicPlayback_VP8_WebVTT_WebM) {
|
| + ASSERT_TRUE(Start(GetTestDataFilePath("bear-vp8-webvtt.webm"),
|
| + PIPELINE_OK));
|
| + Play();
|
| + ASSERT_TRUE(WaitUntilOnEnded());
|
| +}
|
| +
|
| } // namespace media
|
|
|