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 // AudioRenderer implementation. | 142 // AudioRenderer implementation. |
143 MOCK_METHOD7(Initialize, void(DemuxerStream* stream, | 143 MOCK_METHOD7(Initialize, void(DemuxerStream* stream, |
144 const PipelineStatusCB& init_cb, | 144 const PipelineStatusCB& init_cb, |
145 const StatisticsCB& statistics_cb, | 145 const StatisticsCB& statistics_cb, |
146 const TimeCB& time_cb, | 146 const TimeCB& time_cb, |
147 const BufferingStateCB& buffering_state_cb, | 147 const BufferingStateCB& buffering_state_cb, |
148 const base::Closure& ended_cb, | 148 const base::Closure& ended_cb, |
149 const PipelineStatusCB& error_cb)); | 149 const PipelineStatusCB& error_cb)); |
150 MOCK_METHOD0(GetTimeSource, TimeSource*()); | 150 MOCK_METHOD0(GetTimeSource, TimeSource*()); |
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_METHOD0(StartPlaying, void()); | 152 MOCK_METHOD0(StartPlaying, void()); |
154 MOCK_METHOD1(SetVolume, void(float volume)); | 153 MOCK_METHOD1(SetVolume, void(float volume)); |
155 | 154 |
156 private: | 155 private: |
157 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer); | 156 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer); |
158 }; | 157 }; |
159 | 158 |
160 class MockTimeSource : public TimeSource { | 159 class MockTimeSource : public TimeSource { |
161 public: | 160 public: |
162 MockTimeSource(); | 161 MockTimeSource(); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 public: | 222 public: |
224 MockStatisticsCB(); | 223 MockStatisticsCB(); |
225 ~MockStatisticsCB(); | 224 ~MockStatisticsCB(); |
226 | 225 |
227 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); | 226 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); |
228 }; | 227 }; |
229 | 228 |
230 } // namespace media | 229 } // namespace media |
231 | 230 |
232 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 231 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
OLD | NEW |