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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 ~MockRendererClient(); | 219 ~MockRendererClient(); |
220 | 220 |
221 // RendererClient implementation. | 221 // RendererClient implementation. |
222 MOCK_METHOD1(OnError, void(PipelineStatus)); | 222 MOCK_METHOD1(OnError, void(PipelineStatus)); |
223 MOCK_METHOD0(OnEnded, void()); | 223 MOCK_METHOD0(OnEnded, void()); |
224 MOCK_METHOD1(OnStatisticsUpdate, void(const PipelineStatistics&)); | 224 MOCK_METHOD1(OnStatisticsUpdate, void(const PipelineStatistics&)); |
225 MOCK_METHOD1(OnBufferingStateChange, void(BufferingState)); | 225 MOCK_METHOD1(OnBufferingStateChange, void(BufferingState)); |
226 MOCK_METHOD0(OnWaitingForDecryptionKey, void()); | 226 MOCK_METHOD0(OnWaitingForDecryptionKey, void()); |
227 MOCK_METHOD1(OnVideoNaturalSizeChange, void(const gfx::Size&)); | 227 MOCK_METHOD1(OnVideoNaturalSizeChange, void(const gfx::Size&)); |
228 MOCK_METHOD1(OnVideoOpacityChange, void(bool)); | 228 MOCK_METHOD1(OnVideoOpacityChange, void(bool)); |
| 229 MOCK_METHOD1(OnDurationChange, void(base::TimeDelta)); |
229 }; | 230 }; |
230 | 231 |
231 class MockVideoRenderer : public VideoRenderer { | 232 class MockVideoRenderer : public VideoRenderer { |
232 public: | 233 public: |
233 MockVideoRenderer(); | 234 MockVideoRenderer(); |
234 virtual ~MockVideoRenderer(); | 235 virtual ~MockVideoRenderer(); |
235 | 236 |
236 // VideoRenderer implementation. | 237 // VideoRenderer implementation. |
237 MOCK_METHOD5(Initialize, | 238 MOCK_METHOD5(Initialize, |
238 void(DemuxerStream* stream, | 239 void(DemuxerStream* stream, |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 | 370 |
370 private: | 371 private: |
371 int cdm_id_ = CdmContext::kInvalidCdmId; | 372 int cdm_id_ = CdmContext::kInvalidCdmId; |
372 | 373 |
373 DISALLOW_COPY_AND_ASSIGN(MockCdmContext); | 374 DISALLOW_COPY_AND_ASSIGN(MockCdmContext); |
374 }; | 375 }; |
375 | 376 |
376 } // namespace media | 377 } // namespace media |
377 | 378 |
378 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 379 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
OLD | NEW |