| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 // VideoRenderer implementation. | 120 // VideoRenderer implementation. |
| 121 MOCK_METHOD8(Initialize, void(DemuxerStream* stream, | 121 MOCK_METHOD8(Initialize, void(DemuxerStream* stream, |
| 122 bool low_delay, | 122 bool low_delay, |
| 123 const PipelineStatusCB& init_cb, | 123 const PipelineStatusCB& init_cb, |
| 124 const StatisticsCB& statistics_cb, | 124 const StatisticsCB& statistics_cb, |
| 125 const BufferingStateCB& buffering_state_cb, | 125 const BufferingStateCB& buffering_state_cb, |
| 126 const base::Closure& ended_cb, | 126 const base::Closure& ended_cb, |
| 127 const PipelineStatusCB& error_cb, | 127 const PipelineStatusCB& error_cb, |
| 128 const TimeDeltaCB& get_time_cb)); | 128 const TimeDeltaCB& get_time_cb)); |
| 129 MOCK_METHOD1(Flush, void(const base::Closure& callback)); | 129 MOCK_METHOD1(Flush, void(const base::Closure& callback)); |
| 130 MOCK_METHOD0(StartPlaying, void()); | 130 MOCK_METHOD1(StartPlayingFrom, void(base::TimeDelta)); |
| 131 | 131 |
| 132 private: | 132 private: |
| 133 DISALLOW_COPY_AND_ASSIGN(MockVideoRenderer); | 133 DISALLOW_COPY_AND_ASSIGN(MockVideoRenderer); |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 class MockAudioRenderer : public AudioRenderer { | 136 class MockAudioRenderer : public AudioRenderer { |
| 137 public: | 137 public: |
| 138 MockAudioRenderer(); | 138 MockAudioRenderer(); |
| 139 virtual ~MockAudioRenderer(); | 139 virtual ~MockAudioRenderer(); |
| 140 | 140 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); | 236 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); |
| 237 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); | 237 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); |
| 238 | 238 |
| 239 private: | 239 private: |
| 240 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); | 240 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); |
| 241 }; | 241 }; |
| 242 | 242 |
| 243 } // namespace media | 243 } // namespace media |
| 244 | 244 |
| 245 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 245 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
| OLD | NEW |