| 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 #ifndef MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_ | 5 #ifndef MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_ |
| 6 #define MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_ | 6 #define MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 PipelineIntegrationTestBase(); | 61 PipelineIntegrationTestBase(); |
| 62 virtual ~PipelineIntegrationTestBase(); | 62 virtual ~PipelineIntegrationTestBase(); |
| 63 | 63 |
| 64 // Test types for advanced testing and benchmarking (e.g., underflow is | 64 // Test types for advanced testing and benchmarking (e.g., underflow is |
| 65 // disabled to ensure consistent hashes). May be combined using the bitwise | 65 // disabled to ensure consistent hashes). May be combined using the bitwise |
| 66 // or operator (and as such must have values that are powers of two). | 66 // or operator (and as such must have values that are powers of two). |
| 67 enum TestTypeFlags { | 67 enum TestTypeFlags { |
| 68 kNormal = 0, | 68 kNormal = 0, |
| 69 kHashed = 1, | 69 kHashed = 1, |
| 70 kClockless = 2, | 70 kClockless = 2, |
| 71 kExpectDemuxerFailure = 4 | 71 kExpectDemuxerFailure = 4, |
| 72 kUnreliableDuration = 8, |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 // Starts the pipeline with a file specified by |filename|, optionally with a | 75 // Starts the pipeline with a file specified by |filename|, optionally with a |
| 75 // CdmContext or a |test_type|, returning the final status code after it has | 76 // CdmContext or a |test_type|, returning the final status code after it has |
| 76 // started. |filename| points at a test file located under media/test/data/. | 77 // started. |filename| points at a test file located under media/test/data/. |
| 77 PipelineStatus Start(const std::string& filename); | 78 PipelineStatus Start(const std::string& filename); |
| 78 PipelineStatus Start(const std::string& filename, CdmContext* cdm_context); | 79 PipelineStatus Start(const std::string& filename, CdmContext* cdm_context); |
| 79 PipelineStatus Start(const std::string& filename, | 80 PipelineStatus Start(const std::string& filename, |
| 80 uint8_t test_type, | 81 uint8_t test_type, |
| 81 ScopedVector<VideoDecoder> prepend_video_decoders = | 82 ScopedVector<VideoDecoder> prepend_video_decoders = |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 void(const TextTrackConfig& config, | 204 void(const TextTrackConfig& config, |
| 204 const AddTextTrackDoneCB& done_cb)); | 205 const AddTextTrackDoneCB& done_cb)); |
| 205 MOCK_METHOD0(OnWaitingForDecryptionKey, void(void)); | 206 MOCK_METHOD0(OnWaitingForDecryptionKey, void(void)); |
| 206 MOCK_METHOD1(OnVideoNaturalSizeChange, void(const gfx::Size&)); | 207 MOCK_METHOD1(OnVideoNaturalSizeChange, void(const gfx::Size&)); |
| 207 MOCK_METHOD1(OnVideoOpacityChange, void(bool)); | 208 MOCK_METHOD1(OnVideoOpacityChange, void(bool)); |
| 208 }; | 209 }; |
| 209 | 210 |
| 210 } // namespace media | 211 } // namespace media |
| 211 | 212 |
| 212 #endif // MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_ | 213 #endif // MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_ |
| OLD | NEW |