| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 public: | 48 public: |
| 49 explicit MockDemuxerStream(DemuxerStream::Type type); | 49 explicit MockDemuxerStream(DemuxerStream::Type type); |
| 50 virtual ~MockDemuxerStream(); | 50 virtual ~MockDemuxerStream(); |
| 51 | 51 |
| 52 // DemuxerStream implementation. | 52 // DemuxerStream implementation. |
| 53 virtual Type type() OVERRIDE; | 53 virtual Type type() OVERRIDE; |
| 54 MOCK_METHOD1(Read, void(const ReadCB& read_cb)); | 54 MOCK_METHOD1(Read, void(const ReadCB& read_cb)); |
| 55 virtual AudioDecoderConfig audio_decoder_config() OVERRIDE; | 55 virtual AudioDecoderConfig audio_decoder_config() OVERRIDE; |
| 56 virtual VideoDecoderConfig video_decoder_config() OVERRIDE; | 56 virtual VideoDecoderConfig video_decoder_config() OVERRIDE; |
| 57 MOCK_METHOD0(EnableBitstreamConverter, void()); | 57 MOCK_METHOD0(EnableBitstreamConverter, void()); |
| 58 MOCK_METHOD0(SupportsConfigChanges, bool()); |
| 58 | 59 |
| 59 void set_audio_decoder_config(const AudioDecoderConfig& config); | 60 void set_audio_decoder_config(const AudioDecoderConfig& config); |
| 60 void set_video_decoder_config(const VideoDecoderConfig& config); | 61 void set_video_decoder_config(const VideoDecoderConfig& config); |
| 61 | 62 |
| 62 private: | 63 private: |
| 63 DemuxerStream::Type type_; | 64 DemuxerStream::Type type_; |
| 64 AudioDecoderConfig audio_decoder_config_; | 65 AudioDecoderConfig audio_decoder_config_; |
| 65 VideoDecoderConfig video_decoder_config_; | 66 VideoDecoderConfig video_decoder_config_; |
| 66 | 67 |
| 67 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); | 68 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 public: | 209 public: |
| 209 MockStatisticsCB(); | 210 MockStatisticsCB(); |
| 210 ~MockStatisticsCB(); | 211 ~MockStatisticsCB(); |
| 211 | 212 |
| 212 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); | 213 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); |
| 213 }; | 214 }; |
| 214 | 215 |
| 215 } // namespace media | 216 } // namespace media |
| 216 | 217 |
| 217 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 218 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
| OLD | NEW |