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

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

Issue 10534096: Generalize AesDecryptor to make it more spec compliant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 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/mock_filters.h ('k') | media/base/stream_parser.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 #include "media/base/mock_filters.h" 5 #include "media/base/mock_filters.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "media/base/filter_host.h" 9 #include "media/base/filter_host.h"
10 10
(...skipping 23 matching lines...) Expand all
34 MockAudioDecoder::~MockAudioDecoder() {} 34 MockAudioDecoder::~MockAudioDecoder() {}
35 35
36 MockVideoRenderer::MockVideoRenderer() {} 36 MockVideoRenderer::MockVideoRenderer() {}
37 37
38 MockVideoRenderer::~MockVideoRenderer() {} 38 MockVideoRenderer::~MockVideoRenderer() {}
39 39
40 MockAudioRenderer::MockAudioRenderer() {} 40 MockAudioRenderer::MockAudioRenderer() {}
41 41
42 MockAudioRenderer::~MockAudioRenderer() {} 42 MockAudioRenderer::~MockAudioRenderer() {}
43 43
44 MockDecryptorClient::MockDecryptorClient() {}
45
46 MockDecryptorClient::~MockDecryptorClient() {}
47
48 void MockDecryptorClient::KeyMessage(const std::string& key_system,
49 const std::string& session_id,
50 scoped_array<uint8> message,
51 int message_length,
52 const std::string& default_url) {
53 KeyMessageMock(key_system, session_id, message.get(), message_length,
54 default_url);
55 }
56
57 void MockDecryptorClient::NeedKey(const std::string& key_system,
58 const std::string& session_id,
59 scoped_array<uint8> init_data,
60 int init_data_length) {
61 NeedKeyMock(key_system, session_id, init_data.get(), init_data_length);
62 }
63
44 MockFilterCollection::MockFilterCollection() 64 MockFilterCollection::MockFilterCollection()
45 : demuxer_(new MockDemuxer()), 65 : demuxer_(new MockDemuxer()),
46 video_decoder_(new MockVideoDecoder()), 66 video_decoder_(new MockVideoDecoder()),
47 audio_decoder_(new MockAudioDecoder()), 67 audio_decoder_(new MockAudioDecoder()),
48 video_renderer_(new MockVideoRenderer()), 68 video_renderer_(new MockVideoRenderer()),
49 audio_renderer_(new MockAudioRenderer()) { 69 audio_renderer_(new MockAudioRenderer()) {
50 } 70 }
51 71
52 MockFilterCollection::~MockFilterCollection() {} 72 MockFilterCollection::~MockFilterCollection() {}
53 73
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 106
87 MockFilter::MockFilter() {} 107 MockFilter::MockFilter() {}
88 108
89 MockFilter::~MockFilter() {} 109 MockFilter::~MockFilter() {}
90 110
91 MockStatisticsCB::MockStatisticsCB() {} 111 MockStatisticsCB::MockStatisticsCB() {}
92 112
93 MockStatisticsCB::~MockStatisticsCB() {} 113 MockStatisticsCB::~MockStatisticsCB() {}
94 114
95 } // namespace media 115 } // namespace media
OLDNEW
« no previous file with comments | « media/base/mock_filters.h ('k') | media/base/stream_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698