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 | 136 |
138 private: | 137 private: |
139 DISALLOW_COPY_AND_ASSIGN(MockVideoRenderer); | 138 DISALLOW_COPY_AND_ASSIGN(MockVideoRenderer); |
140 }; | 139 }; |
141 | 140 |
142 class MockAudioRenderer : public AudioRenderer { | 141 class MockAudioRenderer : public AudioRenderer { |
143 public: | 142 public: |
144 MockAudioRenderer(); | 143 MockAudioRenderer(); |
(...skipping 17 matching lines...) Expand all Loading... |
162 private: | 161 private: |
163 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer); | 162 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer); |
164 }; | 163 }; |
165 | 164 |
166 class MockRenderer : public Renderer { | 165 class MockRenderer : public Renderer { |
167 public: | 166 public: |
168 MockRenderer(); | 167 MockRenderer(); |
169 virtual ~MockRenderer(); | 168 virtual ~MockRenderer(); |
170 | 169 |
171 // Renderer implementation. | 170 // Renderer implementation. |
172 MOCK_METHOD8(Initialize, | 171 MOCK_METHOD7(Initialize, |
173 void(DemuxerStreamProvider* demuxer_stream_provider, | 172 void(DemuxerStreamProvider* demuxer_stream_provider, |
174 const PipelineStatusCB& init_cb, | 173 const PipelineStatusCB& init_cb, |
175 const StatisticsCB& statistics_cb, | 174 const StatisticsCB& statistics_cb, |
176 const BufferingStateCB& buffering_state_cb, | 175 const BufferingStateCB& buffering_state_cb, |
177 const PaintCB& paint_cb, | |
178 const base::Closure& ended_cb, | 176 const base::Closure& ended_cb, |
179 const PipelineStatusCB& error_cb, | 177 const PipelineStatusCB& error_cb, |
180 const base::Closure& waiting_for_decryption_key_cb)); | 178 const base::Closure& waiting_for_decryption_key_cb)); |
181 MOCK_METHOD1(Flush, void(const base::Closure& flush_cb)); | 179 MOCK_METHOD1(Flush, void(const base::Closure& flush_cb)); |
182 MOCK_METHOD1(StartPlayingFrom, void(base::TimeDelta timestamp)); | 180 MOCK_METHOD1(StartPlayingFrom, void(base::TimeDelta timestamp)); |
183 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); | 181 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); |
184 MOCK_METHOD1(SetVolume, void(float volume)); | 182 MOCK_METHOD1(SetVolume, void(float volume)); |
185 MOCK_METHOD0(GetMediaTime, base::TimeDelta()); | 183 MOCK_METHOD0(GetMediaTime, base::TimeDelta()); |
186 MOCK_METHOD0(HasAudio, bool()); | 184 MOCK_METHOD0(HasAudio, bool()); |
187 MOCK_METHOD0(HasVideo, bool()); | 185 MOCK_METHOD0(HasVideo, bool()); |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); | 249 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); |
252 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); | 250 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); |
253 | 251 |
254 private: | 252 private: |
255 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); | 253 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); |
256 }; | 254 }; |
257 | 255 |
258 } // namespace media | 256 } // namespace media |
259 | 257 |
260 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 258 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
OLD | NEW |