| 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 MOCK_METHOD2(DecryptAndDecodeVideo, | 233 MOCK_METHOD2(DecryptAndDecodeVideo, |
| 234 void(const scoped_refptr<media::DecoderBuffer>& encrypted, | 234 void(const scoped_refptr<media::DecoderBuffer>& encrypted, |
| 235 const VideoDecodeCB& video_decode_cb)); | 235 const VideoDecodeCB& video_decode_cb)); |
| 236 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); | 236 MOCK_METHOD1(ResetDecoder, void(StreamType stream_type)); |
| 237 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); | 237 MOCK_METHOD1(DeinitializeDecoder, void(StreamType stream_type)); |
| 238 | 238 |
| 239 private: | 239 private: |
| 240 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); | 240 DISALLOW_COPY_AND_ASSIGN(MockDecryptor); |
| 241 }; | 241 }; |
| 242 | 242 |
| 243 // Helper mock statistics callback. | |
| 244 class MockStatisticsCB { | |
| 245 public: | |
| 246 MockStatisticsCB(); | |
| 247 ~MockStatisticsCB(); | |
| 248 | |
| 249 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); | |
| 250 }; | |
| 251 | |
| 252 } // namespace media | 243 } // namespace media |
| 253 | 244 |
| 254 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 245 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
| OLD | NEW |