| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); | 70 DISALLOW_COPY_AND_ASSIGN(MockDemuxerStream); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 class MockVideoDecoder : public VideoDecoder { | 73 class MockVideoDecoder : public VideoDecoder { |
| 74 public: | 74 public: |
| 75 MockVideoDecoder(); | 75 MockVideoDecoder(); |
| 76 virtual ~MockVideoDecoder(); | 76 virtual ~MockVideoDecoder(); |
| 77 | 77 |
| 78 // VideoDecoder implementation. | 78 // VideoDecoder implementation. |
| 79 MOCK_METHOD4(Initialize, void(const VideoDecoderConfig& config, | 79 MOCK_METHOD3(Initialize, void(const VideoDecoderConfig& config, |
| 80 bool low_delay, | 80 bool low_delay, |
| 81 const PipelineStatusCB& status_cb, | 81 const PipelineStatusCB&)); |
| 82 const OutputCB& output_cb)); | |
| 83 MOCK_METHOD2(Decode, void(const scoped_refptr<DecoderBuffer>& buffer, | 82 MOCK_METHOD2(Decode, void(const scoped_refptr<DecoderBuffer>& buffer, |
| 84 const DecodeCB&)); | 83 const DecodeCB&)); |
| 85 MOCK_METHOD1(Reset, void(const base::Closure&)); | 84 MOCK_METHOD1(Reset, void(const base::Closure&)); |
| 86 MOCK_METHOD0(Stop, void()); | 85 MOCK_METHOD0(Stop, void()); |
| 87 MOCK_CONST_METHOD0(HasAlpha, bool()); | 86 MOCK_CONST_METHOD0(HasAlpha, bool()); |
| 88 | 87 |
| 89 private: | 88 private: |
| 90 DISALLOW_COPY_AND_ASSIGN(MockVideoDecoder); | 89 DISALLOW_COPY_AND_ASSIGN(MockVideoDecoder); |
| 91 }; | 90 }; |
| 92 | 91 |
| 93 class MockAudioDecoder : public AudioDecoder { | 92 class MockAudioDecoder : public AudioDecoder { |
| 94 public: | 93 public: |
| 95 MockAudioDecoder(); | 94 MockAudioDecoder(); |
| 96 virtual ~MockAudioDecoder(); | 95 virtual ~MockAudioDecoder(); |
| 97 | 96 |
| 98 // AudioDecoder implementation. | 97 // AudioDecoder implementation. |
| 99 MOCK_METHOD3(Initialize, | 98 MOCK_METHOD2(Initialize, void(const AudioDecoderConfig& config, |
| 100 void(const AudioDecoderConfig& config, | 99 const PipelineStatusCB&)); |
| 101 const PipelineStatusCB& status_cb, | |
| 102 const OutputCB& output_cb)); | |
| 103 MOCK_METHOD2(Decode, | 100 MOCK_METHOD2(Decode, |
| 104 void(const scoped_refptr<DecoderBuffer>& buffer, | 101 void(const scoped_refptr<DecoderBuffer>& buffer, |
| 105 const DecodeCB&)); | 102 const DecodeCB&)); |
| 106 MOCK_METHOD1(Reset, void(const base::Closure&)); | 103 MOCK_METHOD1(Reset, void(const base::Closure&)); |
| 107 MOCK_METHOD0(Stop, void()); | 104 MOCK_METHOD0(Stop, void()); |
| 108 | 105 |
| 109 private: | 106 private: |
| 110 DISALLOW_COPY_AND_ASSIGN(MockAudioDecoder); | 107 DISALLOW_COPY_AND_ASSIGN(MockAudioDecoder); |
| 111 }; | 108 }; |
| 112 | 109 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 public: | 208 public: |
| 212 MockStatisticsCB(); | 209 MockStatisticsCB(); |
| 213 ~MockStatisticsCB(); | 210 ~MockStatisticsCB(); |
| 214 | 211 |
| 215 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); | 212 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); |
| 216 }; | 213 }; |
| 217 | 214 |
| 218 } // namespace media | 215 } // namespace media |
| 219 | 216 |
| 220 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 217 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
| OLD | NEW |