Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(578)

Side by Side Diff: media/base/mock_filters.h

Issue 17381007: EME: ProxyDecryptor creates MediaKeys instead of Decryptor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/base/media_keys.cc ('k') | media/crypto/aes_decryptor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « media/base/media_keys.cc ('k') | media/crypto/aes_decryptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698