| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 AudioDecoderConfig audio_decoder_config() override; | 58 AudioDecoderConfig audio_decoder_config() override; |
| 59 VideoDecoderConfig video_decoder_config() override; | 59 VideoDecoderConfig video_decoder_config() override; |
| 60 MOCK_METHOD0(EnableBitstreamConverter, void()); | 60 MOCK_METHOD0(EnableBitstreamConverter, void()); |
| 61 MOCK_METHOD0(SupportsConfigChanges, bool()); | 61 MOCK_METHOD0(SupportsConfigChanges, bool()); |
| 62 | 62 |
| 63 void set_audio_decoder_config(const AudioDecoderConfig& config); | 63 void set_audio_decoder_config(const AudioDecoderConfig& config); |
| 64 void set_video_decoder_config(const VideoDecoderConfig& config); | 64 void set_video_decoder_config(const VideoDecoderConfig& config); |
| 65 void set_liveness(Liveness liveness); | 65 void set_liveness(Liveness liveness); |
| 66 | 66 |
| 67 VideoRotation video_rotation() override; | 67 VideoRotation video_rotation() override; |
| 68 int GetMemoryLimit() const override; |
| 69 void SetMemoryLimit(int memory_limit) override; |
| 68 | 70 |
| 69 private: | 71 private: |
| 70 Type type_; | 72 Type type_; |
| 71 Liveness liveness_; | 73 Liveness liveness_; |
| 72 AudioDecoderConfig audio_decoder_config_; | 74 AudioDecoderConfig audio_decoder_config_; |
| 73 VideoDecoderConfig video_decoder_config_; | 75 VideoDecoderConfig video_decoder_config_; |
| 74 | 76 |
| 75 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); | 77 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); |
| 76 }; | 78 }; |
| 77 | 79 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); | 255 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); |
| 254 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); | 256 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); |
| 255 | 257 |
| 256 private: | 258 private: |
| 257 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); | 259 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); |
| 258 }; | 260 }; |
| 259 | 261 |
| 260 } // namespace media | 262 } // namespace media |
| 261 | 263 |
| 262 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 264 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
| OLD | NEW |