| 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 |
| 11 #include "base/md5.h" | 11 #include "base/md5.h" |
| 12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 13 #include "media/audio/clockless_audio_sink.h" | 13 #include "media/audio/clockless_audio_sink.h" |
| 14 #include "media/audio/null_audio_sink.h" | 14 #include "media/audio/null_audio_sink.h" |
| 15 #include "media/base/audio_hardware_config.h" | |
| 16 #include "media/base/demuxer.h" | 15 #include "media/base/demuxer.h" |
| 17 #include "media/base/media_keys.h" | 16 #include "media/base/media_keys.h" |
| 18 #include "media/base/null_video_sink.h" | 17 #include "media/base/null_video_sink.h" |
| 19 #include "media/base/pipeline_impl.h" | 18 #include "media/base/pipeline_impl.h" |
| 20 #include "media/base/pipeline_status.h" | 19 #include "media/base/pipeline_status.h" |
| 21 #include "media/base/text_track.h" | 20 #include "media/base/text_track.h" |
| 22 #include "media/base/text_track_config.h" | 21 #include "media/base/text_track_config.h" |
| 23 #include "media/base/video_frame.h" | 22 #include "media/base/video_frame.h" |
| 24 #include "media/renderers/video_renderer_impl.h" | 23 #include "media/renderers/video_renderer_impl.h" |
| 25 #include "testing/gmock/include/gmock/gmock.h" | 24 #include "testing/gmock/include/gmock/gmock.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 std::unique_ptr<PipelineImpl> pipeline_; | 125 std::unique_ptr<PipelineImpl> pipeline_; |
| 127 scoped_refptr<NullAudioSink> audio_sink_; | 126 scoped_refptr<NullAudioSink> audio_sink_; |
| 128 scoped_refptr<ClocklessAudioSink> clockless_audio_sink_; | 127 scoped_refptr<ClocklessAudioSink> clockless_audio_sink_; |
| 129 std::unique_ptr<NullVideoSink> video_sink_; | 128 std::unique_ptr<NullVideoSink> video_sink_; |
| 130 bool ended_; | 129 bool ended_; |
| 131 PipelineStatus pipeline_status_; | 130 PipelineStatus pipeline_status_; |
| 132 Demuxer::EncryptedMediaInitDataCB encrypted_media_init_data_cb_; | 131 Demuxer::EncryptedMediaInitDataCB encrypted_media_init_data_cb_; |
| 133 VideoPixelFormat last_video_frame_format_; | 132 VideoPixelFormat last_video_frame_format_; |
| 134 ColorSpace last_video_frame_color_space_; | 133 ColorSpace last_video_frame_color_space_; |
| 135 DummyTickClock dummy_clock_; | 134 DummyTickClock dummy_clock_; |
| 136 AudioHardwareConfig hardware_config_; | |
| 137 PipelineMetadata metadata_; | 135 PipelineMetadata metadata_; |
| 138 | 136 |
| 139 PipelineStatus StartInternal(std::unique_ptr<DataSource> data_source, | 137 PipelineStatus StartInternal(std::unique_ptr<DataSource> data_source, |
| 140 CdmContext* cdm_context, | 138 CdmContext* cdm_context, |
| 141 uint8_t test_type); | 139 uint8_t test_type); |
| 142 | 140 |
| 143 PipelineStatus StartWithFile(const std::string& filename, | 141 PipelineStatus StartWithFile(const std::string& filename, |
| 144 CdmContext* cdm_context, | 142 CdmContext* cdm_context, |
| 145 uint8_t test_type); | 143 uint8_t test_type); |
| 146 | 144 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 170 MOCK_METHOD0(OnDurationChange, void()); | 168 MOCK_METHOD0(OnDurationChange, void()); |
| 171 MOCK_METHOD2(OnAddTextTrack, | 169 MOCK_METHOD2(OnAddTextTrack, |
| 172 void(const TextTrackConfig& config, | 170 void(const TextTrackConfig& config, |
| 173 const AddTextTrackDoneCB& done_cb)); | 171 const AddTextTrackDoneCB& done_cb)); |
| 174 MOCK_METHOD0(OnWaitingForDecryptionKey, void(void)); | 172 MOCK_METHOD0(OnWaitingForDecryptionKey, void(void)); |
| 175 }; | 173 }; |
| 176 | 174 |
| 177 } // namespace media | 175 } // namespace media |
| 178 | 176 |
| 179 #endif // MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_ | 177 #endif // MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_ |
| OLD | NEW |