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

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

Issue 1812543003: Allow muting/unmuting audio through media track API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blink-sb-tracks6
Patch Set: rebase Created 4 years, 8 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 scoped_refptr<ClocklessAudioSink> clockless_audio_sink_; 127 scoped_refptr<ClocklessAudioSink> clockless_audio_sink_;
128 scoped_ptr<NullVideoSink> video_sink_; 128 scoped_ptr<NullVideoSink> video_sink_;
129 bool ended_; 129 bool ended_;
130 PipelineStatus pipeline_status_; 130 PipelineStatus pipeline_status_;
131 Demuxer::EncryptedMediaInitDataCB encrypted_media_init_data_cb_; 131 Demuxer::EncryptedMediaInitDataCB encrypted_media_init_data_cb_;
132 VideoPixelFormat last_video_frame_format_; 132 VideoPixelFormat last_video_frame_format_;
133 ColorSpace last_video_frame_color_space_; 133 ColorSpace last_video_frame_color_space_;
134 DummyTickClock dummy_clock_; 134 DummyTickClock dummy_clock_;
135 AudioHardwareConfig hardware_config_; 135 AudioHardwareConfig hardware_config_;
136 PipelineMetadata metadata_; 136 PipelineMetadata metadata_;
137 unsigned track_id_ = 0;
137 138
138 PipelineStatus StartInternal(scoped_ptr<DataSource> data_source, 139 PipelineStatus StartInternal(scoped_ptr<DataSource> data_source,
139 CdmContext* cdm_context, 140 CdmContext* cdm_context,
140 uint8_t test_type); 141 uint8_t test_type);
141 142
142 PipelineStatus StartWithFile(const std::string& filename, 143 PipelineStatus StartWithFile(const std::string& filename,
143 CdmContext* cdm_context, 144 CdmContext* cdm_context,
144 uint8_t test_type); 145 uint8_t test_type);
145 146
146 void OnSeeked(base::TimeDelta seek_time, PipelineStatus status); 147 void OnSeeked(base::TimeDelta seek_time, PipelineStatus status);
(...skipping 20 matching lines...) Expand all
167 MOCK_METHOD1(DecryptorAttached, void(bool)); 168 MOCK_METHOD1(DecryptorAttached, void(bool));
168 MOCK_METHOD2(OnAddTextTrack, 169 MOCK_METHOD2(OnAddTextTrack,
169 void(const TextTrackConfig& config, 170 void(const TextTrackConfig& config,
170 const AddTextTrackDoneCB& done_cb)); 171 const AddTextTrackDoneCB& done_cb));
171 MOCK_METHOD0(OnWaitingForDecryptionKey, void(void)); 172 MOCK_METHOD0(OnWaitingForDecryptionKey, void(void));
172 }; 173 };
173 174
174 } // namespace media 175 } // namespace media
175 176
176 #endif // MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_ 177 #endif // MEDIA_TEST_PIPELINE_INTEGRATION_TEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698