| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 public: | 89 public: |
| 90 MockAudioDecoder(); | 90 MockAudioDecoder(); |
| 91 virtual ~MockAudioDecoder(); | 91 virtual ~MockAudioDecoder(); |
| 92 | 92 |
| 93 // AudioDecoder implementation. | 93 // AudioDecoder implementation. |
| 94 MOCK_METHOD2(Initialize, void(const AudioDecoderConfig& config, | 94 MOCK_METHOD2(Initialize, void(const AudioDecoderConfig& config, |
| 95 const PipelineStatusCB&)); | 95 const PipelineStatusCB&)); |
| 96 MOCK_METHOD2(Decode, | 96 MOCK_METHOD2(Decode, |
| 97 void(const scoped_refptr<DecoderBuffer>& buffer, | 97 void(const scoped_refptr<DecoderBuffer>& buffer, |
| 98 const DecodeCB&)); | 98 const DecodeCB&)); |
| 99 MOCK_METHOD0(bits_per_channel, int(void)); | |
| 100 MOCK_METHOD0(channel_layout, ChannelLayout(void)); | |
| 101 MOCK_METHOD0(samples_per_second, int(void)); | |
| 102 MOCK_METHOD1(Reset, void(const base::Closure&)); | 99 MOCK_METHOD1(Reset, void(const base::Closure&)); |
| 103 MOCK_METHOD1(Stop, void(const base::Closure&)); | 100 MOCK_METHOD1(Stop, void(const base::Closure&)); |
| 104 | 101 |
| 105 private: | 102 private: |
| 106 DISALLOW_COPY_AND_ASSIGN(MockAudioDecoder); | 103 DISALLOW_COPY_AND_ASSIGN(MockAudioDecoder); |
| 107 }; | 104 }; |
| 108 | 105 |
| 109 class MockVideoRenderer : public VideoRenderer { | 106 class MockVideoRenderer : public VideoRenderer { |
| 110 public: | 107 public: |
| 111 MockVideoRenderer(); | 108 MockVideoRenderer(); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 public: | 205 public: |
| 209 MockStatisticsCB(); | 206 MockStatisticsCB(); |
| 210 ~MockStatisticsCB(); | 207 ~MockStatisticsCB(); |
| 211 | 208 |
| 212 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); | 209 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); |
| 213 }; | 210 }; |
| 214 | 211 |
| 215 } // namespace media | 212 } // namespace media |
| 216 | 213 |
| 217 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 214 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
| OLD | NEW |