Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: media/test/pipeline_integration_test_base.h

Issue 1658303002: Create abstract interface for media::Pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove scoped_ptr pointers. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698