| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer); | 161 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer); |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 class MockRenderer : public Renderer { | 164 class MockRenderer : public Renderer { |
| 165 public: | 165 public: |
| 166 MockRenderer(); | 166 MockRenderer(); |
| 167 virtual ~MockRenderer(); | 167 virtual ~MockRenderer(); |
| 168 | 168 |
| 169 // Renderer implementation. | 169 // Renderer implementation. |
| 170 MOCK_METHOD7(Initialize, void(DemuxerStreamProvider* demuxer_stream_provider, | 170 MOCK_METHOD7(Initialize, void(DemuxerStreamProvider* demuxer_stream_provider, |
| 171 const base::Closure& init_cb, | 171 const PipelineStatusCB& init_cb, |
| 172 const StatisticsCB& statistics_cb, | 172 const StatisticsCB& statistics_cb, |
| 173 const BufferingStateCB& buffering_state_cb, | 173 const BufferingStateCB& buffering_state_cb, |
| 174 const PaintCB& paint_cb, | 174 const PaintCB& paint_cb, |
| 175 const base::Closure& ended_cb, | 175 const base::Closure& ended_cb, |
| 176 const PipelineStatusCB& error_cb)); | 176 const PipelineStatusCB& error_cb)); |
| 177 MOCK_METHOD1(Flush, void(const base::Closure& flush_cb)); | 177 MOCK_METHOD1(Flush, void(const base::Closure& flush_cb)); |
| 178 MOCK_METHOD1(StartPlayingFrom, void(base::TimeDelta timestamp)); | 178 MOCK_METHOD1(StartPlayingFrom, void(base::TimeDelta timestamp)); |
| 179 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); | 179 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); |
| 180 MOCK_METHOD1(SetVolume, void(float volume)); | 180 MOCK_METHOD1(SetVolume, void(float volume)); |
| 181 MOCK_METHOD0(GetMediaTime, base::TimeDelta()); | 181 MOCK_METHOD0(GetMediaTime, base::TimeDelta()); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); | 247 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); |
| 248 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); | 248 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); |
| 249 | 249 |
| 250 private: | 250 private: |
| 251 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); | 251 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); |
| 252 }; | 252 }; |
| 253 | 253 |
| 254 } // namespace media | 254 } // namespace media |
| 255 | 255 |
| 256 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 256 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
| OLD | NEW |