| 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 "media/base/decoder_buffer.h" | 8 #include "media/base/decoder_buffer.h" |
| 9 #include "media/base/decryptor_client.h" |
| 9 #include "media/base/mock_filters.h" | 10 #include "media/base/mock_filters.h" |
| 10 #include "media/base/test_data_util.h" | 11 #include "media/base/test_data_util.h" |
| 11 #include "media/crypto/aes_decryptor.h" | 12 #include "media/crypto/aes_decryptor.h" |
| 12 #include "media/crypto/decryptor_client.h" | |
| 13 #include "media/filters/chunk_demuxer_client.h" | 13 #include "media/filters/chunk_demuxer_client.h" |
| 14 | 14 |
| 15 namespace media { | 15 namespace media { |
| 16 | 16 |
| 17 static const char kSourceId[] = "SourceId"; | 17 static const char kSourceId[] = "SourceId"; |
| 18 static const char kClearKeySystem[] = "org.w3.clearkey"; | 18 static const char kClearKeySystem[] = "org.w3.clearkey"; |
| 19 static const uint8 kInitData[] = { 0x69, 0x6e, 0x69, 0x74 }; | 19 static const uint8 kInitData[] = { 0x69, 0x6e, 0x69, 0x74 }; |
| 20 | 20 |
| 21 // Helper class that emulates calls made on the ChunkDemuxer by the | 21 // Helper class that emulates calls made on the ChunkDemuxer by the |
| 22 // Media Source API. | 22 // Media Source API. |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 | 332 |
| 333 // Verify video decoder & renderer can handle aborted demuxer reads. | 333 // Verify video decoder & renderer can handle aborted demuxer reads. |
| 334 TEST_F(PipelineIntegrationTest, ChunkDemuxerAbortRead_VideoOnly) { | 334 TEST_F(PipelineIntegrationTest, ChunkDemuxerAbortRead_VideoOnly) { |
| 335 ASSERT_TRUE(TestSeekDuringRead("bear-320x240-video-only.webm", 32768, | 335 ASSERT_TRUE(TestSeekDuringRead("bear-320x240-video-only.webm", 32768, |
| 336 base::TimeDelta::FromMilliseconds(200), | 336 base::TimeDelta::FromMilliseconds(200), |
| 337 base::TimeDelta::FromMilliseconds(1668), | 337 base::TimeDelta::FromMilliseconds(1668), |
| 338 0x1C896, 65536, false, true)); | 338 0x1C896, 65536, false, true)); |
| 339 } | 339 } |
| 340 | 340 |
| 341 } // namespace media | 341 } // namespace media |
| OLD | NEW |