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 24 matching lines...) Expand all Loading... |
35 virtual std::string GetDisplayName() const; | 35 virtual std::string GetDisplayName() const; |
36 MOCK_METHOD3(Initialize, | 36 MOCK_METHOD3(Initialize, |
37 void(DemuxerHost* host, const PipelineStatusCB& cb, bool)); | 37 void(DemuxerHost* host, const PipelineStatusCB& cb, bool)); |
38 MOCK_METHOD1(SetPlaybackRate, void(double playback_rate)); | 38 MOCK_METHOD1(SetPlaybackRate, void(double playback_rate)); |
39 MOCK_METHOD2(Seek, void(base::TimeDelta time, const PipelineStatusCB& cb)); | 39 MOCK_METHOD2(Seek, void(base::TimeDelta time, const PipelineStatusCB& cb)); |
40 MOCK_METHOD0(Stop, void()); | 40 MOCK_METHOD0(Stop, void()); |
41 MOCK_METHOD0(OnAudioRendererDisabled, void()); | 41 MOCK_METHOD0(OnAudioRendererDisabled, void()); |
42 MOCK_METHOD1(GetStream, DemuxerStream*(DemuxerStream::Type)); | 42 MOCK_METHOD1(GetStream, DemuxerStream*(DemuxerStream::Type)); |
43 MOCK_CONST_METHOD0(GetStartTime, base::TimeDelta()); | 43 MOCK_CONST_METHOD0(GetStartTime, base::TimeDelta()); |
44 MOCK_CONST_METHOD0(GetTimelineOffset, base::Time()); | 44 MOCK_CONST_METHOD0(GetTimelineOffset, base::Time()); |
| 45 MOCK_CONST_METHOD0(GetMemoryUsage, int64_t()); |
45 | 46 |
46 private: | 47 private: |
47 DISALLOW_COPY_AND_ASSIGN(MockDemuxer); | 48 DISALLOW_COPY_AND_ASSIGN(MockDemuxer); |
48 }; | 49 }; |
49 | 50 |
50 class MockDemuxerStream : public DemuxerStream { | 51 class MockDemuxerStream : public DemuxerStream { |
51 public: | 52 public: |
52 explicit MockDemuxerStream(DemuxerStream::Type type); | 53 explicit MockDemuxerStream(DemuxerStream::Type type); |
53 virtual ~MockDemuxerStream(); | 54 virtual ~MockDemuxerStream(); |
54 | 55 |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); | 255 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); |
255 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); | 256 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); |
256 | 257 |
257 private: | 258 private: |
258 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); | 259 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); |
259 }; | 260 }; |
260 | 261 |
261 } // namespace media | 262 } // namespace media |
262 | 263 |
263 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 264 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
OLD | NEW |