| 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 <string> | 10 #include <string> |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 void(DemuxerHost* host, const PipelineStatusCB& cb, bool)); | 108 void(DemuxerHost* host, const PipelineStatusCB& cb, bool)); |
| 109 MOCK_METHOD1(StartWaitingForSeek, void(base::TimeDelta)); | 109 MOCK_METHOD1(StartWaitingForSeek, void(base::TimeDelta)); |
| 110 MOCK_METHOD1(CancelPendingSeek, void(base::TimeDelta)); | 110 MOCK_METHOD1(CancelPendingSeek, void(base::TimeDelta)); |
| 111 MOCK_METHOD2(Seek, void(base::TimeDelta time, const PipelineStatusCB& cb)); | 111 MOCK_METHOD2(Seek, void(base::TimeDelta time, const PipelineStatusCB& cb)); |
| 112 MOCK_METHOD0(Stop, void()); | 112 MOCK_METHOD0(Stop, void()); |
| 113 MOCK_METHOD1(GetStream, DemuxerStream*(DemuxerStream::Type)); | 113 MOCK_METHOD1(GetStream, DemuxerStream*(DemuxerStream::Type)); |
| 114 MOCK_CONST_METHOD0(GetStartTime, base::TimeDelta()); | 114 MOCK_CONST_METHOD0(GetStartTime, base::TimeDelta()); |
| 115 MOCK_CONST_METHOD0(GetTimelineOffset, base::Time()); | 115 MOCK_CONST_METHOD0(GetTimelineOffset, base::Time()); |
| 116 MOCK_CONST_METHOD0(GetMemoryUsage, int64_t()); | 116 MOCK_CONST_METHOD0(GetMemoryUsage, int64_t()); |
| 117 | 117 |
| 118 MOCK_METHOD2(OnTrackIdAssigned, void(unsigned, const MediaTrack*)); |
| 119 MOCK_CONST_METHOD1(GetDemuxerStreamByTrackId, const DemuxerStream*(unsigned)); |
| 120 |
| 118 private: | 121 private: |
| 119 DISALLOW_COPY_AND_ASSIGN(MockDemuxer); | 122 DISALLOW_COPY_AND_ASSIGN(MockDemuxer); |
| 120 }; | 123 }; |
| 121 | 124 |
| 122 class MockDemuxerStream : public DemuxerStream { | 125 class MockDemuxerStream : public DemuxerStream { |
| 123 public: | 126 public: |
| 124 explicit MockDemuxerStream(DemuxerStream::Type type); | 127 explicit MockDemuxerStream(DemuxerStream::Type type); |
| 125 virtual ~MockDemuxerStream(); | 128 virtual ~MockDemuxerStream(); |
| 126 | 129 |
| 127 // DemuxerStream implementation. | 130 // DemuxerStream implementation. |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 MOCK_METHOD0(GetDecryptor, Decryptor*()); | 344 MOCK_METHOD0(GetDecryptor, Decryptor*()); |
| 342 int GetCdmId() const override; | 345 int GetCdmId() const override; |
| 343 | 346 |
| 344 private: | 347 private: |
| 345 DISALLOW_COPY_AND_ASSIGN(MockCdmContext); | 348 DISALLOW_COPY_AND_ASSIGN(MockCdmContext); |
| 346 }; | 349 }; |
| 347 | 350 |
| 348 } // namespace media | 351 } // namespace media |
| 349 | 352 |
| 350 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 353 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
| OLD | NEW |