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