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