| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 virtual Type type() OVERRIDE; | 54 virtual Type type() OVERRIDE; |
| 55 MOCK_METHOD1(Read, void(const ReadCB& read_cb)); | 55 MOCK_METHOD1(Read, void(const ReadCB& read_cb)); |
| 56 virtual AudioDecoderConfig audio_decoder_config() OVERRIDE; | 56 virtual AudioDecoderConfig audio_decoder_config() OVERRIDE; |
| 57 virtual VideoDecoderConfig video_decoder_config() OVERRIDE; | 57 virtual VideoDecoderConfig video_decoder_config() OVERRIDE; |
| 58 MOCK_METHOD0(EnableBitstreamConverter, void()); | 58 MOCK_METHOD0(EnableBitstreamConverter, void()); |
| 59 MOCK_METHOD0(SupportsConfigChanges, bool()); | 59 MOCK_METHOD0(SupportsConfigChanges, bool()); |
| 60 | 60 |
| 61 void set_audio_decoder_config(const AudioDecoderConfig& config); | 61 void set_audio_decoder_config(const AudioDecoderConfig& config); |
| 62 void set_video_decoder_config(const VideoDecoderConfig& config); | 62 void set_video_decoder_config(const VideoDecoderConfig& config); |
| 63 | 63 |
| 64 virtual VideoRotation video_rotation() OVERRIDE; |
| 65 |
| 64 private: | 66 private: |
| 65 DemuxerStream::Type type_; | 67 DemuxerStream::Type type_; |
| 66 AudioDecoderConfig audio_decoder_config_; | 68 AudioDecoderConfig audio_decoder_config_; |
| 67 VideoDecoderConfig video_decoder_config_; | 69 VideoDecoderConfig video_decoder_config_; |
| 68 | 70 |
| 69 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); | 71 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); |
| 70 }; | 72 }; |
| 71 | 73 |
| 72 class MockVideoDecoder : public VideoDecoder { | 74 class MockVideoDecoder : public VideoDecoder { |
| 73 public: | 75 public: |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 public: | 212 public: |
| 211 MockStatisticsCB(); | 213 MockStatisticsCB(); |
| 212 ~MockStatisticsCB(); | 214 ~MockStatisticsCB(); |
| 213 | 215 |
| 214 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); | 216 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); |
| 215 }; | 217 }; |
| 216 | 218 |
| 217 } // namespace media | 219 } // namespace media |
| 218 | 220 |
| 219 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 221 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
| OLD | NEW |