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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 private: | 154 private: |
155 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer); | 155 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer); |
156 }; | 156 }; |
157 | 157 |
158 class MockRenderer : public Renderer { | 158 class MockRenderer : public Renderer { |
159 public: | 159 public: |
160 MockRenderer(); | 160 MockRenderer(); |
161 virtual ~MockRenderer(); | 161 virtual ~MockRenderer(); |
162 | 162 |
163 // Renderer implementation. | 163 // Renderer implementation. |
164 MOCK_METHOD6(Initialize, void(const PipelineStatusCB& init_cb, | 164 MOCK_METHOD6(Initialize, void(const base::Closure& init_cb, |
165 const StatisticsCB& statistics_cb, | 165 const StatisticsCB& statistics_cb, |
166 const base::Closure& ended_cb, | 166 const base::Closure& ended_cb, |
167 const PipelineStatusCB& error_cb, | 167 const PipelineStatusCB& error_cb, |
168 const BufferingStateCB& buffering_state_cb, | 168 const BufferingStateCB& buffering_state_cb, |
169 const TimeDeltaCB& get_duration_cb)); | 169 const TimeDeltaCB& get_duration_cb)); |
170 MOCK_METHOD1(Flush, void(const base::Closure& flush_cb)); | 170 MOCK_METHOD1(Flush, void(const base::Closure& flush_cb)); |
171 MOCK_METHOD1(StartPlayingFrom, void(base::TimeDelta timestamp)); | 171 MOCK_METHOD1(StartPlayingFrom, void(base::TimeDelta timestamp)); |
172 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); | 172 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); |
173 MOCK_METHOD1(SetVolume, void(float volume)); | 173 MOCK_METHOD1(SetVolume, void(float volume)); |
174 MOCK_METHOD0(GetMediaTime, base::TimeDelta()); | 174 MOCK_METHOD0(GetMediaTime, base::TimeDelta()); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 public: | 246 public: |
247 MockStatisticsCB(); | 247 MockStatisticsCB(); |
248 ~MockStatisticsCB(); | 248 ~MockStatisticsCB(); |
249 | 249 |
250 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); | 250 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); |
251 }; | 251 }; |
252 | 252 |
253 } // namespace media | 253 } // namespace media |
254 | 254 |
255 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 255 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
OLD | NEW |