| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 MOCK_METHOD0(EnableBitstreamConverter, void()); | 151 MOCK_METHOD0(EnableBitstreamConverter, void()); |
| 152 MOCK_METHOD0(SupportsConfigChanges, bool()); | 152 MOCK_METHOD0(SupportsConfigChanges, bool()); |
| 153 | 153 |
| 154 void set_audio_decoder_config(const AudioDecoderConfig& config); | 154 void set_audio_decoder_config(const AudioDecoderConfig& config); |
| 155 void set_video_decoder_config(const VideoDecoderConfig& config); | 155 void set_video_decoder_config(const VideoDecoderConfig& config); |
| 156 void set_liveness(Liveness liveness); | 156 void set_liveness(Liveness liveness); |
| 157 | 157 |
| 158 VideoRotation video_rotation() override; | 158 VideoRotation video_rotation() override; |
| 159 MOCK_CONST_METHOD0(enabled, bool()); | 159 MOCK_CONST_METHOD0(enabled, bool()); |
| 160 MOCK_METHOD2(set_enabled, void(bool, base::TimeDelta)); | 160 MOCK_METHOD2(set_enabled, void(bool, base::TimeDelta)); |
| 161 MOCK_METHOD1(SetStreamRestartedCB, void(const StreamRestartedCB&)); | 161 MOCK_METHOD1(SetStreamStatusChangeCB, void(const StreamStatusChangeCB&)); |
| 162 | 162 |
| 163 private: | 163 private: |
| 164 Type type_; | 164 Type type_; |
| 165 Liveness liveness_; | 165 Liveness liveness_; |
| 166 AudioDecoderConfig audio_decoder_config_; | 166 AudioDecoderConfig audio_decoder_config_; |
| 167 VideoDecoderConfig video_decoder_config_; | 167 VideoDecoderConfig video_decoder_config_; |
| 168 | 168 |
| 169 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); | 169 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); |
| 170 }; | 170 }; |
| 171 | 171 |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 | 369 |
| 370 private: | 370 private: |
| 371 int cdm_id_ = CdmContext::kInvalidCdmId; | 371 int cdm_id_ = CdmContext::kInvalidCdmId; |
| 372 | 372 |
| 373 DISALLOW_COPY_AND_ASSIGN(MockCdmContext); | 373 DISALLOW_COPY_AND_ASSIGN(MockCdmContext); |
| 374 }; | 374 }; |
| 375 | 375 |
| 376 } // namespace media | 376 } // namespace media |
| 377 | 377 |
| 378 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 378 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
| OLD | NEW |