| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); | 75 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 class MockVideoDecoder : public VideoDecoder { | 78 class MockVideoDecoder : public VideoDecoder { |
| 79 public: | 79 public: |
| 80 MockVideoDecoder(); | 80 MockVideoDecoder(); |
| 81 virtual ~MockVideoDecoder(); | 81 virtual ~MockVideoDecoder(); |
| 82 | 82 |
| 83 // VideoDecoder implementation. | 83 // VideoDecoder implementation. |
| 84 virtual std::string GetDisplayName() const; | 84 virtual std::string GetDisplayName() const; |
| 85 MOCK_METHOD4(Initialize, void(const VideoDecoderConfig& config, | 85 MOCK_METHOD4(Initialize, |
| 86 bool low_delay, | 86 void(const VideoDecoderConfig& config, |
| 87 const PipelineStatusCB& status_cb, | 87 bool low_delay, |
| 88 const OutputCB& output_cb)); | 88 const InitCB& init_cb, |
| 89 const OutputCB& output_cb)); |
| 89 MOCK_METHOD2(Decode, void(const scoped_refptr<DecoderBuffer>& buffer, | 90 MOCK_METHOD2(Decode, void(const scoped_refptr<DecoderBuffer>& buffer, |
| 90 const DecodeCB&)); | 91 const DecodeCB&)); |
| 91 MOCK_METHOD1(Reset, void(const base::Closure&)); | 92 MOCK_METHOD1(Reset, void(const base::Closure&)); |
| 92 MOCK_CONST_METHOD0(HasAlpha, bool()); | 93 MOCK_CONST_METHOD0(HasAlpha, bool()); |
| 93 | 94 |
| 94 private: | 95 private: |
| 95 DISALLOW_COPY_AND_ASSIGN(MockVideoDecoder); | 96 DISALLOW_COPY_AND_ASSIGN(MockVideoDecoder); |
| 96 }; | 97 }; |
| 97 | 98 |
| 98 class MockAudioDecoder : public AudioDecoder { | 99 class MockAudioDecoder : public AudioDecoder { |
| 99 public: | 100 public: |
| 100 MockAudioDecoder(); | 101 MockAudioDecoder(); |
| 101 virtual ~MockAudioDecoder(); | 102 virtual ~MockAudioDecoder(); |
| 102 | 103 |
| 103 // AudioDecoder implementation. | 104 // AudioDecoder implementation. |
| 104 virtual std::string GetDisplayName() const; | 105 virtual std::string GetDisplayName() const; |
| 105 MOCK_METHOD3(Initialize, | 106 MOCK_METHOD3(Initialize, |
| 106 void(const AudioDecoderConfig& config, | 107 void(const AudioDecoderConfig& config, |
| 107 const PipelineStatusCB& status_cb, | 108 const InitCB& init_cb, |
| 108 const OutputCB& output_cb)); | 109 const OutputCB& output_cb)); |
| 109 MOCK_METHOD2(Decode, | 110 MOCK_METHOD2(Decode, |
| 110 void(const scoped_refptr<DecoderBuffer>& buffer, | 111 void(const scoped_refptr<DecoderBuffer>& buffer, |
| 111 const DecodeCB&)); | 112 const DecodeCB&)); |
| 112 MOCK_METHOD1(Reset, void(const base::Closure&)); | 113 MOCK_METHOD1(Reset, void(const base::Closure&)); |
| 113 | 114 |
| 114 private: | 115 private: |
| 115 DISALLOW_COPY_AND_ASSIGN(MockAudioDecoder); | 116 DISALLOW_COPY_AND_ASSIGN(MockAudioDecoder); |
| 116 }; | 117 }; |
| 117 | 118 |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); | 253 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); |
| 253 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); | 254 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); |
| 254 | 255 |
| 255 private: | 256 private: |
| 256 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); | 257 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); |
| 257 }; | 258 }; |
| 258 | 259 |
| 259 } // namespace media | 260 } // namespace media |
| 260 | 261 |
| 261 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 262 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
| OLD | NEW |