| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 153 |
| 154 private: | 154 private: |
| 155 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer); | 155 DISALLOW_COPY_AND_ASSIGN(MockAudioRenderer); |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 class MockDecryptor : public Decryptor { | 158 class MockDecryptor : public Decryptor { |
| 159 public: | 159 public: |
| 160 MockDecryptor(); | 160 MockDecryptor(); |
| 161 virtual ~MockDecryptor(); | 161 virtual ~MockDecryptor(); |
| 162 | 162 |
| 163 MOCK_METHOD0(GetMediaKeys, MediaKeys*(void)); | |
| 164 | |
| 165 MOCK_METHOD2(RegisterNewKeyCB, void(StreamType stream_type, | 163 MOCK_METHOD2(RegisterNewKeyCB, void(StreamType stream_type, |
| 166 const NewKeyCB& new_key_cb)); | 164 const NewKeyCB& new_key_cb)); |
| 167 MOCK_METHOD3(Decrypt, void(StreamType stream_type, | 165 MOCK_METHOD3(Decrypt, void(StreamType stream_type, |
| 168 const scoped_refptr<DecoderBuffer>& encrypted, | 166 const scoped_refptr<DecoderBuffer>& encrypted, |
| 169 const DecryptCB& decrypt_cb)); | 167 const DecryptCB& decrypt_cb)); |
| 170 MOCK_METHOD1(CancelDecrypt, void(StreamType stream_type)); | 168 MOCK_METHOD1(CancelDecrypt, void(StreamType stream_type)); |
| 171 MOCK_METHOD2(InitializeAudioDecoder, | 169 MOCK_METHOD2(InitializeAudioDecoder, |
| 172 void(const AudioDecoderConfig& config, | 170 void(const AudioDecoderConfig& config, |
| 173 const DecoderInitCB& init_cb)); | 171 const DecoderInitCB& init_cb)); |
| 174 MOCK_METHOD2(InitializeVideoDecoder, | 172 MOCK_METHOD2(InitializeVideoDecoder, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 192 public: | 190 public: |
| 193 MockStatisticsCB(); | 191 MockStatisticsCB(); |
| 194 ~MockStatisticsCB(); | 192 ~MockStatisticsCB(); |
| 195 | 193 |
| 196 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); | 194 MOCK_METHOD1(OnStatistics, void(const media::PipelineStatistics& statistics)); |
| 197 }; | 195 }; |
| 198 | 196 |
| 199 } // namespace media | 197 } // namespace media |
| 200 | 198 |
| 201 #endif // MEDIA_BASE_MOCK_FILTERS_H_ | 199 #endif // MEDIA_BASE_MOCK_FILTERS_H_ |
| OLD | NEW |