| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 MOCK_METHOD7(Initialize, void(DemuxerStream* stream, | 142 MOCK_METHOD7(Initialize, void(DemuxerStream* stream, |
| 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(Flush, void(const base::Closure& callback)); | 151 MOCK_METHOD1(Flush, void(const base::Closure& callback)); |
| 152 MOCK_METHOD1(Stop, void(const base::Closure& callback)); | |
| 153 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); | 152 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); |
| 154 MOCK_METHOD1(StartPlayingFrom, void(base::TimeDelta timestamp)); | 153 MOCK_METHOD1(StartPlayingFrom, void(base::TimeDelta timestamp)); |
| 155 MOCK_METHOD1(SetVolume, void(float volume)); | 154 MOCK_METHOD1(SetVolume, void(float volume)); |
| 156 MOCK_METHOD0(ResumeAfterUnderflow, void()); | 155 MOCK_METHOD0(ResumeAfterUnderflow, void()); |
| 157 | 156 |
| 158 private: | 157 private: |
| 159 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer); | 158 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer); |
| 160 }; | 159 }; |
| 161 | 160 |
| 162 class MockTextTrack : public TextTrack { | 161 class MockTextTrack : public TextTrack { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 public: | 208 public: |
| 210 MockStatisticsCB(); | 209 MockStatisticsCB(); |
| 211 ~MockStatisticsCB(); | 210 ~MockStatisticsCB(); |
| 212 | 211 |
| 213 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); | 212 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); |
| 214 }; | 213 }; |
| 215 | 214 |
| 216 } // namespace media | 215 } // namespace media |
| 217 | 216 |
| 218 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 217 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
| OLD | NEW |