| 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 | 9 |
| 10 #include "base/md5.h" | 10 #include "base/md5.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // Pipeline must have been started with clockless playback enabled. | 101 // Pipeline must have been started with clockless playback enabled. |
| 102 base::TimeDelta GetAudioTime(); | 102 base::TimeDelta GetAudioTime(); |
| 103 | 103 |
| 104 protected: | 104 protected: |
| 105 base::MessageLoop message_loop_; | 105 base::MessageLoop message_loop_; |
| 106 base::MD5Context md5_context_; | 106 base::MD5Context md5_context_; |
| 107 bool hashing_enabled_; | 107 bool hashing_enabled_; |
| 108 bool clockless_playback_; | 108 bool clockless_playback_; |
| 109 scoped_ptr<Demuxer> demuxer_; | 109 scoped_ptr<Demuxer> demuxer_; |
| 110 scoped_ptr<DataSource> data_source_; | 110 scoped_ptr<DataSource> data_source_; |
| 111 scoped_ptr<Pipeline> pipeline_; | 111 scoped_ptr<PipelineImpl> pipeline_; |
| 112 scoped_refptr<NullAudioSink> audio_sink_; | 112 scoped_refptr<NullAudioSink> audio_sink_; |
| 113 scoped_refptr<ClocklessAudioSink> clockless_audio_sink_; | 113 scoped_refptr<ClocklessAudioSink> clockless_audio_sink_; |
| 114 scoped_ptr<NullVideoSink> video_sink_; | 114 scoped_ptr<NullVideoSink> video_sink_; |
| 115 bool ended_; | 115 bool ended_; |
| 116 PipelineStatus pipeline_status_; | 116 PipelineStatus pipeline_status_; |
| 117 Demuxer::EncryptedMediaInitDataCB encrypted_media_init_data_cb_; | 117 Demuxer::EncryptedMediaInitDataCB encrypted_media_init_data_cb_; |
| 118 VideoPixelFormat last_video_frame_format_; | 118 VideoPixelFormat last_video_frame_format_; |
| 119 ColorSpace last_video_frame_color_space_; | 119 ColorSpace last_video_frame_color_space_; |
| 120 DummyTickClock dummy_clock_; | 120 DummyTickClock dummy_clock_; |
| 121 AudioHardwareConfig hardware_config_; | 121 AudioHardwareConfig hardware_config_; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 147 MOCK_METHOD1(DecryptorAttached, void(bool)); | 147 MOCK_METHOD1(DecryptorAttached, void(bool)); |
| 148 MOCK_METHOD2(OnAddTextTrack, | 148 MOCK_METHOD2(OnAddTextTrack, |
| 149 void(const TextTrackConfig& config, | 149 void(const TextTrackConfig& config, |
| 150 const AddTextTrackDoneCB& done_cb)); | 150 const AddTextTrackDoneCB& done_cb)); |
| 151 MOCK_METHOD0(OnWaitingForDecryptionKey, void(void)); | 151 MOCK_METHOD0(OnWaitingForDecryptionKey, void(void)); |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 } // namespace media | 154 } // namespace media |
| 155 | 155 |
| 156 #endif // MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_ | 156 #endif // MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_ |
| OLD | NEW |