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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 AudioDecoderConfig audio_decoder_config() override; | 159 AudioDecoderConfig audio_decoder_config() override; |
160 VideoDecoderConfig video_decoder_config() override; | 160 VideoDecoderConfig video_decoder_config() override; |
161 MOCK_METHOD0(EnableBitstreamConverter, void()); | 161 MOCK_METHOD0(EnableBitstreamConverter, void()); |
162 MOCK_METHOD0(SupportsConfigChanges, bool()); | 162 MOCK_METHOD0(SupportsConfigChanges, bool()); |
163 | 163 |
164 void set_audio_decoder_config(const AudioDecoderConfig& config); | 164 void set_audio_decoder_config(const AudioDecoderConfig& config); |
165 void set_video_decoder_config(const VideoDecoderConfig& config); | 165 void set_video_decoder_config(const VideoDecoderConfig& config); |
166 void set_liveness(Liveness liveness); | 166 void set_liveness(Liveness liveness); |
167 | 167 |
168 VideoRotation video_rotation() override; | 168 VideoRotation video_rotation() override; |
169 MOCK_CONST_METHOD0(enabled, bool()); | |
170 MOCK_METHOD2(set_enabled, void(bool, base::TimeDelta)); | |
171 | 169 |
172 private: | 170 private: |
173 Type type_; | 171 Type type_; |
174 Liveness liveness_; | 172 Liveness liveness_; |
175 AudioDecoderConfig audio_decoder_config_; | 173 AudioDecoderConfig audio_decoder_config_; |
176 VideoDecoderConfig video_decoder_config_; | 174 VideoDecoderConfig video_decoder_config_; |
177 | 175 |
178 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); | 176 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); |
179 }; | 177 }; |
180 | 178 |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 MOCK_METHOD0(Flush, void()); | 581 MOCK_METHOD0(Flush, void()); |
584 MOCK_METHOD2(Parse, bool(const uint8_t*, int)); | 582 MOCK_METHOD2(Parse, bool(const uint8_t*, int)); |
585 | 583 |
586 private: | 584 private: |
587 DISALLOW_COPY_AND_ASSIGN(MockStreamParser); | 585 DISALLOW_COPY_AND_ASSIGN(MockStreamParser); |
588 }; | 586 }; |
589 | 587 |
590 } // namespace media | 588 } // namespace media |
591 | 589 |
592 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 590 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
OLD | NEW |