| 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 #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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 default_url); | 54 default_url); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void MockDecryptorClient::NeedKey(const std::string& key_system, | 57 void MockDecryptorClient::NeedKey(const std::string& key_system, |
| 58 const std::string& session_id, | 58 const std::string& session_id, |
| 59 scoped_array<uint8> init_data, | 59 scoped_array<uint8> init_data, |
| 60 int init_data_length) { | 60 int init_data_length) { |
| 61 NeedKeyMock(key_system, session_id, init_data.get(), init_data_length); | 61 NeedKeyMock(key_system, session_id, init_data.get(), init_data_length); |
| 62 } | 62 } |
| 63 | 63 |
| 64 MockAudioRendererHost::MockAudioRendererHost() {} |
| 65 |
| 66 MockAudioRendererHost::~MockAudioRendererHost() {} |
| 67 |
| 64 MockFilterCollection::MockFilterCollection() | 68 MockFilterCollection::MockFilterCollection() |
| 65 : demuxer_(new MockDemuxer()), | 69 : demuxer_(new MockDemuxer()), |
| 66 video_decoder_(new MockVideoDecoder()), | 70 video_decoder_(new MockVideoDecoder()), |
| 67 audio_decoder_(new MockAudioDecoder()), | 71 audio_decoder_(new MockAudioDecoder()), |
| 68 video_renderer_(new MockVideoRenderer()), | 72 video_renderer_(new MockVideoRenderer()), |
| 69 audio_renderer_(new MockAudioRenderer()) { | 73 audio_renderer_(new MockAudioRenderer()) { |
| 70 } | 74 } |
| 71 | 75 |
| 72 MockFilterCollection::~MockFilterCollection() {} | 76 MockFilterCollection::~MockFilterCollection() {} |
| 73 | 77 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 114 |
| 111 void MockFilter::SetHost(FilterHost* host) { | 115 void MockFilter::SetHost(FilterHost* host) { |
| 112 host_ = host; | 116 host_ = host; |
| 113 } | 117 } |
| 114 | 118 |
| 115 MockStatisticsCB::MockStatisticsCB() {} | 119 MockStatisticsCB::MockStatisticsCB() {} |
| 116 | 120 |
| 117 MockStatisticsCB::~MockStatisticsCB() {} | 121 MockStatisticsCB::~MockStatisticsCB() {} |
| 118 | 122 |
| 119 } // namespace media | 123 } // namespace media |
| OLD | NEW |