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

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

Issue 2491043003: MediaResource refactoring to support multiple streams (Closed)
Patch Set: Added a TODO about DemuxerStream enabled/set_enabled methods Created 3 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
« no previous file with comments | « media/base/media_url_demuxer.cc ('k') | media/base/pipeline_impl.cc » ('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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 // Demuxer implementation. 126 // Demuxer implementation.
127 virtual std::string GetDisplayName() const; 127 virtual std::string GetDisplayName() const;
128 MOCK_METHOD3(Initialize, 128 MOCK_METHOD3(Initialize,
129 void(DemuxerHost* host, const PipelineStatusCB& cb, bool)); 129 void(DemuxerHost* host, const PipelineStatusCB& cb, bool));
130 MOCK_METHOD1(StartWaitingForSeek, void(base::TimeDelta)); 130 MOCK_METHOD1(StartWaitingForSeek, void(base::TimeDelta));
131 MOCK_METHOD1(CancelPendingSeek, void(base::TimeDelta)); 131 MOCK_METHOD1(CancelPendingSeek, void(base::TimeDelta));
132 MOCK_METHOD2(Seek, void(base::TimeDelta time, const PipelineStatusCB& cb)); 132 MOCK_METHOD2(Seek, void(base::TimeDelta time, const PipelineStatusCB& cb));
133 MOCK_METHOD0(Stop, void()); 133 MOCK_METHOD0(Stop, void());
134 MOCK_METHOD0(AbortPendingReads, void()); 134 MOCK_METHOD0(AbortPendingReads, void());
135 MOCK_METHOD1(GetStream, DemuxerStream*(DemuxerStream::Type)); 135 MOCK_METHOD0(GetAllStreams, std::vector<DemuxerStream*>());
136 MOCK_METHOD1(SetStreamStatusChangeCB, void(const StreamStatusChangeCB& cb));
137
136 MOCK_CONST_METHOD0(GetStartTime, base::TimeDelta()); 138 MOCK_CONST_METHOD0(GetStartTime, base::TimeDelta());
137 MOCK_CONST_METHOD0(GetTimelineOffset, base::Time()); 139 MOCK_CONST_METHOD0(GetTimelineOffset, base::Time());
138 MOCK_CONST_METHOD0(GetMemoryUsage, int64_t()); 140 MOCK_CONST_METHOD0(GetMemoryUsage, int64_t());
139 MOCK_METHOD2(OnEnabledAudioTracksChanged, 141 MOCK_METHOD2(OnEnabledAudioTracksChanged,
140 void(const std::vector<MediaTrack::Id>&, base::TimeDelta)); 142 void(const std::vector<MediaTrack::Id>&, base::TimeDelta));
141 MOCK_METHOD2(OnSelectedVideoTrackChanged, 143 MOCK_METHOD2(OnSelectedVideoTrackChanged,
142 void(const std::vector<MediaTrack::Id>&, base::TimeDelta)); 144 void(const std::vector<MediaTrack::Id>&, base::TimeDelta));
143 145
144 private: 146 private:
145 DISALLOW_COPY_AND_ASSIGN(MockDemuxer); 147 DISALLOW_COPY_AND_ASSIGN(MockDemuxer);
(...skipping 13 matching lines...) Expand all
159 MOCK_METHOD0(EnableBitstreamConverter, void()); 161 MOCK_METHOD0(EnableBitstreamConverter, void());
160 MOCK_METHOD0(SupportsConfigChanges, bool()); 162 MOCK_METHOD0(SupportsConfigChanges, bool());
161 163
162 void set_audio_decoder_config(const AudioDecoderConfig& config); 164 void set_audio_decoder_config(const AudioDecoderConfig& config);
163 void set_video_decoder_config(const VideoDecoderConfig& config); 165 void set_video_decoder_config(const VideoDecoderConfig& config);
164 void set_liveness(Liveness liveness); 166 void set_liveness(Liveness liveness);
165 167
166 VideoRotation video_rotation() override; 168 VideoRotation video_rotation() override;
167 MOCK_CONST_METHOD0(enabled, bool()); 169 MOCK_CONST_METHOD0(enabled, bool());
168 MOCK_METHOD2(set_enabled, void(bool, base::TimeDelta)); 170 MOCK_METHOD2(set_enabled, void(bool, base::TimeDelta));
169 MOCK_METHOD1(SetStreamStatusChangeCB, void(const StreamStatusChangeCB&));
170 171
171 private: 172 private:
172 Type type_; 173 Type type_;
173 Liveness liveness_; 174 Liveness liveness_;
174 AudioDecoderConfig audio_decoder_config_; 175 AudioDecoderConfig audio_decoder_config_;
175 VideoDecoderConfig video_decoder_config_; 176 VideoDecoderConfig video_decoder_config_;
176 177
177 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); 178 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream);
178 }; 179 };
179 180
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 MOCK_METHOD0(Flush, void()); 583 MOCK_METHOD0(Flush, void());
583 MOCK_METHOD2(Parse, bool(const uint8_t*, int)); 584 MOCK_METHOD2(Parse, bool(const uint8_t*, int));
584 585
585 private: 586 private:
586 DISALLOW_COPY_AND_ASSIGN(MockStreamParser); 587 DISALLOW_COPY_AND_ASSIGN(MockStreamParser);
587 }; 588 };
588 589
589 } // namespace media 590 } // namespace media
590 591
591 #endif // MEDIA_BASE_MOCK_FILTERS_H_ 592 #endif // MEDIA_BASE_MOCK_FILTERS_H_
OLDNEW
« no previous file with comments | « media/base/media_url_demuxer.cc ('k') | media/base/pipeline_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698