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

Side by Side Diff: media/base/mock_filters.h

Issue 2199913002: Notify demux stream clients when a stream is disabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't pass DemuxerStream into the status callback Created 4 years, 4 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
« no previous file with comments | « media/base/fake_text_track_stream.cc ('k') | media/filters/chunk_demuxer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BASE_MOCK_FILTERS_H_ 5 #ifndef MEDIA_BASE_MOCK_FILTERS_H_
6 #define MEDIA_BASE_MOCK_FILTERS_H_ 6 #define MEDIA_BASE_MOCK_FILTERS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 MOCK_METHOD0(EnableBitstreamConverter, void()); 151 MOCK_METHOD0(EnableBitstreamConverter, void());
152 MOCK_METHOD0(SupportsConfigChanges, bool()); 152 MOCK_METHOD0(SupportsConfigChanges, bool());
153 153
154 void set_audio_decoder_config(const AudioDecoderConfig& config); 154 void set_audio_decoder_config(const AudioDecoderConfig& config);
155 void set_video_decoder_config(const VideoDecoderConfig& config); 155 void set_video_decoder_config(const VideoDecoderConfig& config);
156 void set_liveness(Liveness liveness); 156 void set_liveness(Liveness liveness);
157 157
158 VideoRotation video_rotation() override; 158 VideoRotation video_rotation() override;
159 MOCK_CONST_METHOD0(enabled, bool()); 159 MOCK_CONST_METHOD0(enabled, bool());
160 MOCK_METHOD2(set_enabled, void(bool, base::TimeDelta)); 160 MOCK_METHOD2(set_enabled, void(bool, base::TimeDelta));
161 MOCK_METHOD1(SetStreamRestartedCB, void(const StreamRestartedCB&)); 161 MOCK_METHOD1(SetStreamStatusChangeCB, void(const StreamStatusChangeCB&));
162 162
163 private: 163 private:
164 Type type_; 164 Type type_;
165 Liveness liveness_; 165 Liveness liveness_;
166 AudioDecoderConfig audio_decoder_config_; 166 AudioDecoderConfig audio_decoder_config_;
167 VideoDecoderConfig video_decoder_config_; 167 VideoDecoderConfig video_decoder_config_;
168 168
169 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); 169 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream);
170 }; 170 };
171 171
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 369
370 private: 370 private:
371 int cdm_id_ = CdmContext::kInvalidCdmId; 371 int cdm_id_ = CdmContext::kInvalidCdmId;
372 372
373 DISALLOW_COPY_AND_ASSIGN(MockCdmContext); 373 DISALLOW_COPY_AND_ASSIGN(MockCdmContext);
374 }; 374 };
375 375
376 } // namespace media 376 } // namespace media
377 377
378 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 378 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW
« no previous file with comments | « media/base/fake_text_track_stream.cc ('k') | media/filters/chunk_demuxer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698