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

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

Issue 10796074: Move VideoRenderer out of Filter heirarchy. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: Created 8 years, 5 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
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"
10 9
11 using ::testing::_; 10 using ::testing::_;
12 using ::testing::Invoke; 11 using ::testing::Invoke;
13 using ::testing::NotNull; 12 using ::testing::NotNull;
14 using ::testing::Return; 13 using ::testing::Return;
15 14
16 namespace media { 15 namespace media {
17 16
18 MockDemuxer::MockDemuxer() {} 17 MockDemuxer::MockDemuxer() {}
19 18
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 scoped_ptr<FilterCollection> MockFilterCollection::Create() { 77 scoped_ptr<FilterCollection> MockFilterCollection::Create() {
79 scoped_ptr<FilterCollection> collection(new FilterCollection()); 78 scoped_ptr<FilterCollection> collection(new FilterCollection());
80 collection->SetDemuxer(demuxer_); 79 collection->SetDemuxer(demuxer_);
81 collection->AddVideoDecoder(video_decoder_); 80 collection->AddVideoDecoder(video_decoder_);
82 collection->AddAudioDecoder(audio_decoder_); 81 collection->AddAudioDecoder(audio_decoder_);
83 collection->AddVideoRenderer(video_renderer_); 82 collection->AddVideoRenderer(video_renderer_);
84 collection->AddAudioRenderer(audio_renderer_); 83 collection->AddAudioRenderer(audio_renderer_);
85 return collection.Pass(); 84 return collection.Pass();
86 } 85 }
87 86
88 MockFilter::MockFilter() : host_(NULL) {}
89
90 MockFilter::~MockFilter() {}
91
92 void MockFilter::SetHost(FilterHost* host) {
93 host_ = host;
94 }
95
96 MockStatisticsCB::MockStatisticsCB() {} 87 MockStatisticsCB::MockStatisticsCB() {}
97 88
98 MockStatisticsCB::~MockStatisticsCB() {} 89 MockStatisticsCB::~MockStatisticsCB() {}
99 90
100 } // namespace media 91 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698