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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 const PipelineStatusCB& init_cb, | 143 const PipelineStatusCB& init_cb, |
144 const StatisticsCB& statistics_cb, | 144 const StatisticsCB& statistics_cb, |
145 const TimeCB& time_cb, | 145 const TimeCB& time_cb, |
146 const BufferingStateCB& buffering_state_cb, | 146 const BufferingStateCB& buffering_state_cb, |
147 const base::Closure& ended_cb, | 147 const base::Closure& ended_cb, |
148 const PipelineStatusCB& error_cb)); | 148 const PipelineStatusCB& error_cb)); |
149 MOCK_METHOD0(StartRendering, void()); | 149 MOCK_METHOD0(StartRendering, void()); |
150 MOCK_METHOD0(StopRendering, void()); | 150 MOCK_METHOD0(StopRendering, void()); |
151 MOCK_METHOD1(SetMediaTime, void(base::TimeDelta)); | 151 MOCK_METHOD1(SetMediaTime, void(base::TimeDelta)); |
152 MOCK_METHOD1(Flush, void(const base::Closure& callback)); | 152 MOCK_METHOD1(Flush, void(const base::Closure& callback)); |
153 MOCK_METHOD1(Stop, void(const base::Closure& callback)); | |
154 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); | 153 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); |
155 MOCK_METHOD0(StartPlaying, void()); | 154 MOCK_METHOD0(StartPlaying, void()); |
156 MOCK_METHOD1(SetVolume, void(float volume)); | 155 MOCK_METHOD1(SetVolume, void(float volume)); |
157 MOCK_METHOD0(ResumeAfterUnderflow, void()); | 156 MOCK_METHOD0(ResumeAfterUnderflow, void()); |
158 | 157 |
159 private: | 158 private: |
160 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer); | 159 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer); |
161 }; | 160 }; |
162 | 161 |
163 class MockTextTrack : public TextTrack { | 162 class MockTextTrack : public TextTrack { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 public: | 209 public: |
211 MockStatisticsCB(); | 210 MockStatisticsCB(); |
212 ~MockStatisticsCB(); | 211 ~MockStatisticsCB(); |
213 | 212 |
214 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); | 213 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); |
215 }; | 214 }; |
216 | 215 |
217 } // namespace media | 216 } // namespace media |
218 | 217 |
219 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 218 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
OLD | NEW |