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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 class MockVideoDecoder : public VideoDecoder { | 68 class MockVideoDecoder : public VideoDecoder { |
69 public: | 69 public: |
70 MockVideoDecoder(); | 70 MockVideoDecoder(); |
71 virtual ~MockVideoDecoder(); | 71 virtual ~MockVideoDecoder(); |
72 | 72 |
73 // VideoDecoder implementation. | 73 // VideoDecoder implementation. |
74 MOCK_METHOD2(Initialize, void(const VideoDecoderConfig& config, | 74 MOCK_METHOD2(Initialize, void(const VideoDecoderConfig& config, |
75 const PipelineStatusCB&)); | 75 const PipelineStatusCB&)); |
76 MOCK_METHOD2(Decode, void(const scoped_refptr<DecoderBuffer>& buffer, | 76 MOCK_METHOD2(Decode, void(const scoped_refptr<DecoderBuffer>& buffer, |
77 const ReadCB&)); | 77 const DecodeCB&)); |
78 MOCK_METHOD1(Reset, void(const base::Closure&)); | 78 MOCK_METHOD1(Reset, void(const base::Closure&)); |
79 MOCK_METHOD1(Stop, void(const base::Closure&)); | 79 MOCK_METHOD1(Stop, void(const base::Closure&)); |
80 MOCK_CONST_METHOD0(HasAlpha, bool()); | 80 MOCK_CONST_METHOD0(HasAlpha, bool()); |
81 | 81 |
82 private: | 82 private: |
83 DISALLOW_COPY_AND_ASSIGN(MockVideoDecoder); | 83 DISALLOW_COPY_AND_ASSIGN(MockVideoDecoder); |
84 }; | 84 }; |
85 | 85 |
86 class MockAudioDecoder : public AudioDecoder { | 86 class MockAudioDecoder : public AudioDecoder { |
87 public: | 87 public: |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 public: | 190 public: |
191 MockStatisticsCB(); | 191 MockStatisticsCB(); |
192 ~MockStatisticsCB(); | 192 ~MockStatisticsCB(); |
193 | 193 |
194 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); | 194 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); |
195 }; | 195 }; |
196 | 196 |
197 } // namespace media | 197 } // namespace media |
198 | 198 |
199 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 199 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
OLD | NEW |