OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/filters/pipeline_integration_test_base.h" | 5 #include "media/filters/pipeline_integration_test_base.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
11 #include "media/base/decoder_buffer.h" | 11 #include "media/base/decoder_buffer.h" |
12 #include "media/base/media_keys.h" | 12 #include "media/base/media_keys.h" |
13 #include "media/base/test_data_util.h" | 13 #include "media/base/test_data_util.h" |
14 #include "media/crypto/aes_decryptor.h" | 14 #include "media/cdm/aes_decryptor.h" |
15 #include "media/filters/chunk_demuxer.h" | 15 #include "media/filters/chunk_demuxer.h" |
16 | 16 |
17 using testing::AnyNumber; | 17 using testing::AnyNumber; |
18 using testing::AtMost; | 18 using testing::AtMost; |
19 | 19 |
20 namespace media { | 20 namespace media { |
21 | 21 |
22 static const char kSourceId[] = "SourceId"; | 22 static const char kSourceId[] = "SourceId"; |
23 static const char kClearKeySystem[] = "org.w3.clearkey"; | 23 static const char kClearKeySystem[] = "org.w3.clearkey"; |
24 static const uint8 kInitData[] = { 0x69, 0x6e, 0x69, 0x74 }; | 24 static const uint8 kInitData[] = { 0x69, 0x6e, 0x69, 0x74 }; |
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
948 | 948 |
949 // Verify that VP8 video with inband text track can be played back. | 949 // Verify that VP8 video with inband text track can be played back. |
950 TEST_F(PipelineIntegrationTest, BasicPlayback_VP8_WebVTT_WebM) { | 950 TEST_F(PipelineIntegrationTest, BasicPlayback_VP8_WebVTT_WebM) { |
951 ASSERT_TRUE(Start(GetTestDataFilePath("bear-vp8-webvtt.webm"), | 951 ASSERT_TRUE(Start(GetTestDataFilePath("bear-vp8-webvtt.webm"), |
952 PIPELINE_OK)); | 952 PIPELINE_OK)); |
953 Play(); | 953 Play(); |
954 ASSERT_TRUE(WaitUntilOnEnded()); | 954 ASSERT_TRUE(WaitUntilOnEnded()); |
955 } | 955 } |
956 | 956 |
957 } // namespace media | 957 } // namespace media |
OLD | NEW |