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_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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 private: | 114 private: |
115 DISALLOW_COPY_AND_ASSIGN(MockAudioDecoder); | 115 DISALLOW_COPY_AND_ASSIGN(MockAudioDecoder); |
116 }; | 116 }; |
117 | 117 |
118 class MockVideoRenderer : public VideoRenderer { | 118 class MockVideoRenderer : public VideoRenderer { |
119 public: | 119 public: |
120 MockVideoRenderer(); | 120 MockVideoRenderer(); |
121 virtual ~MockVideoRenderer(); | 121 virtual ~MockVideoRenderer(); |
122 | 122 |
123 // VideoRenderer implementation. | 123 // VideoRenderer implementation. |
124 MOCK_METHOD10(Initialize, | 124 MOCK_METHOD9(Initialize, |
125 void(DemuxerStream* stream, | 125 void(DemuxerStream* stream, |
126 const PipelineStatusCB& init_cb, | 126 const PipelineStatusCB& init_cb, |
127 const SetDecryptorReadyCB& set_decryptor_ready_cb, | 127 const SetDecryptorReadyCB& set_decryptor_ready_cb, |
128 const StatisticsCB& statistics_cb, | 128 const StatisticsCB& statistics_cb, |
129 const BufferingStateCB& buffering_state_cb, | 129 const BufferingStateCB& buffering_state_cb, |
130 const PaintCB& paint_cb, | 130 const base::Closure& ended_cb, |
131 const base::Closure& ended_cb, | 131 const PipelineStatusCB& error_cb, |
132 const PipelineStatusCB& error_cb, | 132 const WallClockTimeCB& wall_clock_time_cb, |
133 const WallClockTimeCB& wall_clock_time_cb, | 133 const base::Closure& waiting_for_decryption_key_cb)); |
134 const base::Closure& waiting_for_decryption_key_cb)); | |
135 MOCK_METHOD1(Flush, void(const base::Closure& callback)); | 134 MOCK_METHOD1(Flush, void(const base::Closure& callback)); |
136 MOCK_METHOD1(StartPlayingFrom, void(base::TimeDelta)); | 135 MOCK_METHOD1(StartPlayingFrom, void(base::TimeDelta)); |
137 MOCK_METHOD0(OnTimeProgressing, void()); | 136 MOCK_METHOD0(OnTimeProgressing, void()); |
138 MOCK_METHOD0(OnTimeStopped, void()); | 137 MOCK_METHOD0(OnTimeStopped, void()); |
139 | 138 |
140 private: | 139 private: |
141 DISALLOW_COPY_AND_ASSIGN(MockVideoRenderer); | 140 DISALLOW_COPY_AND_ASSIGN(MockVideoRenderer); |
142 }; | 141 }; |
143 | 142 |
144 class MockAudioRenderer : public AudioRenderer { | 143 class MockAudioRenderer : public AudioRenderer { |
(...skipping 19 matching lines...) Expand all Loading... |
164 private: | 163 private: |
165 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer); | 164 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer); |
166 }; | 165 }; |
167 | 166 |
168 class MockRenderer : public Renderer { | 167 class MockRenderer : public Renderer { |
169 public: | 168 public: |
170 MockRenderer(); | 169 MockRenderer(); |
171 virtual ~MockRenderer(); | 170 virtual ~MockRenderer(); |
172 | 171 |
173 // Renderer implementation. | 172 // Renderer implementation. |
174 MOCK_METHOD8(Initialize, | 173 MOCK_METHOD7(Initialize, |
175 void(DemuxerStreamProvider* demuxer_stream_provider, | 174 void(DemuxerStreamProvider* demuxer_stream_provider, |
176 const PipelineStatusCB& init_cb, | 175 const PipelineStatusCB& init_cb, |
177 const StatisticsCB& statistics_cb, | 176 const StatisticsCB& statistics_cb, |
178 const BufferingStateCB& buffering_state_cb, | 177 const BufferingStateCB& buffering_state_cb, |
179 const PaintCB& paint_cb, | |
180 const base::Closure& ended_cb, | 178 const base::Closure& ended_cb, |
181 const PipelineStatusCB& error_cb, | 179 const PipelineStatusCB& error_cb, |
182 const base::Closure& waiting_for_decryption_key_cb)); | 180 const base::Closure& waiting_for_decryption_key_cb)); |
183 MOCK_METHOD1(Flush, void(const base::Closure& flush_cb)); | 181 MOCK_METHOD1(Flush, void(const base::Closure& flush_cb)); |
184 MOCK_METHOD1(StartPlayingFrom, void(base::TimeDelta timestamp)); | 182 MOCK_METHOD1(StartPlayingFrom, void(base::TimeDelta timestamp)); |
185 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); | 183 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); |
186 MOCK_METHOD1(SetVolume, void(float volume)); | 184 MOCK_METHOD1(SetVolume, void(float volume)); |
187 MOCK_METHOD0(GetMediaTime, base::TimeDelta()); | 185 MOCK_METHOD0(GetMediaTime, base::TimeDelta()); |
188 MOCK_METHOD0(HasAudio, bool()); | 186 MOCK_METHOD0(HasAudio, bool()); |
189 MOCK_METHOD0(HasVideo, bool()); | 187 MOCK_METHOD0(HasVideo, bool()); |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); | 251 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); |
254 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); | 252 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); |
255 | 253 |
256 private: | 254 private: |
257 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); | 255 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); |
258 }; | 256 }; |
259 | 257 |
260 } // namespace media | 258 } // namespace media |
261 | 259 |
262 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 260 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
OLD | NEW |