| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 virtual ~MockDemuxer(); | 117 virtual ~MockDemuxer(); |
| 118 | 118 |
| 119 // Demuxer implementation. | 119 // Demuxer implementation. |
| 120 virtual std::string GetDisplayName() const; | 120 virtual std::string GetDisplayName() const; |
| 121 MOCK_METHOD3(Initialize, | 121 MOCK_METHOD3(Initialize, |
| 122 void(DemuxerHost* host, const PipelineStatusCB& cb, bool)); | 122 void(DemuxerHost* host, const PipelineStatusCB& cb, bool)); |
| 123 MOCK_METHOD1(StartWaitingForSeek, void(base::TimeDelta)); | 123 MOCK_METHOD1(StartWaitingForSeek, void(base::TimeDelta)); |
| 124 MOCK_METHOD1(CancelPendingSeek, void(base::TimeDelta)); | 124 MOCK_METHOD1(CancelPendingSeek, void(base::TimeDelta)); |
| 125 MOCK_METHOD2(Seek, void(base::TimeDelta time, const PipelineStatusCB& cb)); | 125 MOCK_METHOD2(Seek, void(base::TimeDelta time, const PipelineStatusCB& cb)); |
| 126 MOCK_METHOD0(Stop, void()); | 126 MOCK_METHOD0(Stop, void()); |
| 127 MOCK_METHOD0(AbortPendingReads, void()); |
| 127 MOCK_METHOD1(GetStream, DemuxerStream*(DemuxerStream::Type)); | 128 MOCK_METHOD1(GetStream, DemuxerStream*(DemuxerStream::Type)); |
| 128 MOCK_CONST_METHOD0(GetStartTime, base::TimeDelta()); | 129 MOCK_CONST_METHOD0(GetStartTime, base::TimeDelta()); |
| 129 MOCK_CONST_METHOD0(GetTimelineOffset, base::Time()); | 130 MOCK_CONST_METHOD0(GetTimelineOffset, base::Time()); |
| 130 MOCK_CONST_METHOD0(GetMemoryUsage, int64_t()); | 131 MOCK_CONST_METHOD0(GetMemoryUsage, int64_t()); |
| 131 MOCK_METHOD2(OnEnabledAudioTracksChanged, | 132 MOCK_METHOD2(OnEnabledAudioTracksChanged, |
| 132 void(const std::vector<MediaTrack::Id>&, base::TimeDelta)); | 133 void(const std::vector<MediaTrack::Id>&, base::TimeDelta)); |
| 133 MOCK_METHOD2(OnSelectedVideoTrackChanged, | 134 MOCK_METHOD2(OnSelectedVideoTrackChanged, |
| 134 void(const std::vector<MediaTrack::Id>&, base::TimeDelta)); | 135 void(const std::vector<MediaTrack::Id>&, base::TimeDelta)); |
| 135 | 136 |
| 136 private: | 137 private: |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 | 371 |
| 371 private: | 372 private: |
| 372 int cdm_id_ = CdmContext::kInvalidCdmId; | 373 int cdm_id_ = CdmContext::kInvalidCdmId; |
| 373 | 374 |
| 374 DISALLOW_COPY_AND_ASSIGN(MockCdmContext); | 375 DISALLOW_COPY_AND_ASSIGN(MockCdmContext); |
| 375 }; | 376 }; |
| 376 | 377 |
| 377 } // namespace media | 378 } // namespace media |
| 378 | 379 |
| 379 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 380 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
| OLD | NEW |