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