| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); | 79 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 class MockVideoDecoder : public VideoDecoder { | 82 class MockVideoDecoder : public VideoDecoder { |
| 83 public: | 83 public: |
| 84 MockVideoDecoder(); | 84 MockVideoDecoder(); |
| 85 virtual ~MockVideoDecoder(); | 85 virtual ~MockVideoDecoder(); |
| 86 | 86 |
| 87 // VideoDecoder implementation. | 87 // VideoDecoder implementation. |
| 88 virtual std::string GetDisplayName() const; | 88 virtual std::string GetDisplayName() const; |
| 89 MOCK_METHOD5(Initialize, | 89 MOCK_METHOD4(Initialize, |
| 90 void(const VideoDecoderConfig& config, | 90 void(const VideoDecoderConfig& config, |
| 91 bool low_delay, | 91 bool low_delay, |
| 92 const SetCdmReadyCB& set_cdm_ready_cb, | |
| 93 const InitCB& init_cb, | 92 const InitCB& init_cb, |
| 94 const OutputCB& output_cb)); | 93 const OutputCB& output_cb)); |
| 95 MOCK_METHOD2(Decode, void(const scoped_refptr<DecoderBuffer>& buffer, | 94 MOCK_METHOD2(Decode, void(const scoped_refptr<DecoderBuffer>& buffer, |
| 96 const DecodeCB&)); | 95 const DecodeCB&)); |
| 97 MOCK_METHOD1(Reset, void(const base::Closure&)); | 96 MOCK_METHOD1(Reset, void(const base::Closure&)); |
| 98 MOCK_CONST_METHOD0(HasAlpha, bool()); | 97 MOCK_CONST_METHOD0(HasAlpha, bool()); |
| 99 | 98 |
| 100 private: | 99 private: |
| 101 DISALLOW_COPY_AND_ASSIGN(MockVideoDecoder); | 100 DISALLOW_COPY_AND_ASSIGN(MockVideoDecoder); |
| 102 }; | 101 }; |
| 103 | 102 |
| 104 class MockAudioDecoder : public AudioDecoder { | 103 class MockAudioDecoder : public AudioDecoder { |
| 105 public: | 104 public: |
| 106 MockAudioDecoder(); | 105 MockAudioDecoder(); |
| 107 virtual ~MockAudioDecoder(); | 106 virtual ~MockAudioDecoder(); |
| 108 | 107 |
| 109 // AudioDecoder implementation. | 108 // AudioDecoder implementation. |
| 110 virtual std::string GetDisplayName() const; | 109 virtual std::string GetDisplayName() const; |
| 111 MOCK_METHOD4(Initialize, | 110 MOCK_METHOD3(Initialize, |
| 112 void(const AudioDecoderConfig& config, | 111 void(const AudioDecoderConfig& config, |
| 113 const SetCdmReadyCB& set_cdm_ready_cb, | |
| 114 const InitCB& init_cb, | 112 const InitCB& init_cb, |
| 115 const OutputCB& output_cb)); | 113 const OutputCB& output_cb)); |
| 116 MOCK_METHOD2(Decode, | 114 MOCK_METHOD2(Decode, |
| 117 void(const scoped_refptr<DecoderBuffer>& buffer, | 115 void(const scoped_refptr<DecoderBuffer>& buffer, |
| 118 const DecodeCB&)); | 116 const DecodeCB&)); |
| 119 MOCK_METHOD1(Reset, void(const base::Closure&)); | 117 MOCK_METHOD1(Reset, void(const base::Closure&)); |
| 120 | 118 |
| 121 private: | 119 private: |
| 122 DISALLOW_COPY_AND_ASSIGN(MockAudioDecoder); | 120 DISALLOW_COPY_AND_ASSIGN(MockAudioDecoder); |
| 123 }; | 121 }; |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 MOCK_METHOD0(GetDecryptor, Decryptor*()); | 269 MOCK_METHOD0(GetDecryptor, Decryptor*()); |
| 272 int GetCdmId() const override; | 270 int GetCdmId() const override; |
| 273 | 271 |
| 274 private: | 272 private: |
| 275 DISALLOW_COPY_AND_ASSIGN(MockCdmContext); | 273 DISALLOW_COPY_AND_ASSIGN(MockCdmContext); |
| 276 }; | 274 }; |
| 277 | 275 |
| 278 } // namespace media | 276 } // namespace media |
| 279 | 277 |
| 280 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 278 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
| OLD | NEW |