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 20 matching lines...) Expand all Loading... |
31 virtual ~MockDemuxer(); | 31 virtual ~MockDemuxer(); |
32 | 32 |
33 // Demuxer implementation. | 33 // Demuxer implementation. |
34 MOCK_METHOD3(Initialize, | 34 MOCK_METHOD3(Initialize, |
35 void(DemuxerHost* host, const PipelineStatusCB& cb, bool)); | 35 void(DemuxerHost* host, const PipelineStatusCB& cb, bool)); |
36 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); | 36 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); |
37 MOCK_METHOD2(Seek, void(base::TimeDelta time, const PipelineStatusCB& cb)); | 37 MOCK_METHOD2(Seek, void(base::TimeDelta time, const PipelineStatusCB& cb)); |
38 MOCK_METHOD1(Stop, void(const base::Closure& callback)); | 38 MOCK_METHOD1(Stop, void(const base::Closure& callback)); |
39 MOCK_METHOD0(OnAudioRendererDisabled, void()); | 39 MOCK_METHOD0(OnAudioRendererDisabled, void()); |
40 MOCK_METHOD1(GetStream, DemuxerStream*(DemuxerStream::Type)); | 40 MOCK_METHOD1(GetStream, DemuxerStream*(DemuxerStream::Type)); |
41 MOCK_CONST_METHOD0(GetStartTime, base::TimeDelta()); | |
42 MOCK_CONST_METHOD0(GetTimelineOffset, base::Time()); | 41 MOCK_CONST_METHOD0(GetTimelineOffset, base::Time()); |
43 MOCK_CONST_METHOD0(GetLiveness, Liveness()); | 42 MOCK_CONST_METHOD0(GetLiveness, Liveness()); |
44 | 43 |
45 private: | 44 private: |
46 DISALLOW_COPY_AND_ASSIGN(MockDemuxer); | 45 DISALLOW_COPY_AND_ASSIGN(MockDemuxer); |
47 }; | 46 }; |
48 | 47 |
49 class MockDemuxerStream : public DemuxerStream { | 48 class MockDemuxerStream : public DemuxerStream { |
50 public: | 49 public: |
51 explicit MockDemuxerStream(DemuxerStream::Type type); | 50 explicit MockDemuxerStream(DemuxerStream::Type type); |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 public: | 210 public: |
212 MockStatisticsCB(); | 211 MockStatisticsCB(); |
213 ~MockStatisticsCB(); | 212 ~MockStatisticsCB(); |
214 | 213 |
215 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); | 214 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); |
216 }; | 215 }; |
217 | 216 |
218 } // namespace media | 217 } // namespace media |
219 | 218 |
220 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 219 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
OLD | NEW |