| 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 21 matching lines...) Expand all Loading... |
| 32 virtual ~MockDemuxer(); | 32 virtual ~MockDemuxer(); |
| 33 | 33 |
| 34 // Demuxer implementation. | 34 // Demuxer implementation. |
| 35 MOCK_METHOD3(Initialize, | 35 MOCK_METHOD3(Initialize, |
| 36 void(DemuxerHost* host, const PipelineStatusCB& cb, bool)); | 36 void(DemuxerHost* host, const PipelineStatusCB& cb, bool)); |
| 37 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); | 37 MOCK_METHOD1(SetPlaybackRate, void(float playback_rate)); |
| 38 MOCK_METHOD2(Seek, void(base::TimeDelta time, const PipelineStatusCB& cb)); | 38 MOCK_METHOD2(Seek, void(base::TimeDelta time, const PipelineStatusCB& cb)); |
| 39 MOCK_METHOD0(Stop, void()); | 39 MOCK_METHOD0(Stop, void()); |
| 40 MOCK_METHOD0(OnAudioRendererDisabled, void()); | 40 MOCK_METHOD0(OnAudioRendererDisabled, void()); |
| 41 MOCK_METHOD1(GetStream, DemuxerStream*(DemuxerStream::Type)); | 41 MOCK_METHOD1(GetStream, DemuxerStream*(DemuxerStream::Type)); |
| 42 MOCK_CONST_METHOD0(GetStartTime, base::TimeDelta()); |
| 42 MOCK_CONST_METHOD0(GetTimelineOffset, base::Time()); | 43 MOCK_CONST_METHOD0(GetTimelineOffset, base::Time()); |
| 43 MOCK_CONST_METHOD0(GetLiveness, Liveness()); | 44 MOCK_CONST_METHOD0(GetLiveness, Liveness()); |
| 44 | 45 |
| 45 private: | 46 private: |
| 46 DISALLOW_COPY_AND_ASSIGN(MockDemuxer); | 47 DISALLOW_COPY_AND_ASSIGN(MockDemuxer); |
| 47 }; | 48 }; |
| 48 | 49 |
| 49 class MockDemuxerStream : public DemuxerStream { | 50 class MockDemuxerStream : public DemuxerStream { |
| 50 public: | 51 public: |
| 51 explicit MockDemuxerStream(DemuxerStream::Type type); | 52 explicit MockDemuxerStream(DemuxerStream::Type type); |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); | 237 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); |
| 237 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); | 238 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); |
| 238 | 239 |
| 239 private: | 240 private: |
| 240 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); | 241 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); |
| 241 }; | 242 }; |
| 242 | 243 |
| 243 } // namespace media | 244 } // namespace media |
| 244 | 245 |
| 245 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 246 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
| OLD | NEW |