| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 238 |
| 239 // VideoRenderer implementation. | 239 // VideoRenderer implementation. |
| 240 MOCK_METHOD5(Initialize, | 240 MOCK_METHOD5(Initialize, |
| 241 void(DemuxerStream* stream, | 241 void(DemuxerStream* stream, |
| 242 CdmContext* cdm_context, | 242 CdmContext* cdm_context, |
| 243 RendererClient* client, | 243 RendererClient* client, |
| 244 const TimeSource::WallClockTimeCB& wall_clock_time_cb, | 244 const TimeSource::WallClockTimeCB& wall_clock_time_cb, |
| 245 const PipelineStatusCB& init_cb)); | 245 const PipelineStatusCB& init_cb)); |
| 246 MOCK_METHOD1(Flush, void(const base::Closure& callback)); | 246 MOCK_METHOD1(Flush, void(const base::Closure& callback)); |
| 247 MOCK_METHOD1(StartPlayingFrom, void(base::TimeDelta)); | 247 MOCK_METHOD1(StartPlayingFrom, void(base::TimeDelta)); |
| 248 MOCK_METHOD1(OnTimeStateChanged, void(bool)); | 248 MOCK_METHOD0(TimeStartedProgressing, void()); |
| 249 MOCK_METHOD0(TimeStoppedProgressing, void()); |
| 249 | 250 |
| 250 private: | 251 private: |
| 251 DISALLOW_COPY_AND_ASSIGN(MockVideoRenderer); | 252 DISALLOW_COPY_AND_ASSIGN(MockVideoRenderer); |
| 252 }; | 253 }; |
| 253 | 254 |
| 254 class MockAudioRenderer : public AudioRenderer { | 255 class MockAudioRenderer : public AudioRenderer { |
| 255 public: | 256 public: |
| 256 MockAudioRenderer(); | 257 MockAudioRenderer(); |
| 257 virtual ~MockAudioRenderer(); | 258 virtual ~MockAudioRenderer(); |
| 258 | 259 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 MOCK_METHOD0(Flush, void()); | 396 MOCK_METHOD0(Flush, void()); |
| 396 MOCK_METHOD2(Parse, bool(const uint8_t*, int)); | 397 MOCK_METHOD2(Parse, bool(const uint8_t*, int)); |
| 397 | 398 |
| 398 private: | 399 private: |
| 399 DISALLOW_COPY_AND_ASSIGN(MockStreamParser); | 400 DISALLOW_COPY_AND_ASSIGN(MockStreamParser); |
| 400 }; | 401 }; |
| 401 | 402 |
| 402 } // namespace media | 403 } // namespace media |
| 403 | 404 |
| 404 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 405 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
| OLD | NEW |