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

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

Issue 10753021: Move AudioRenderer out of Filter heirarchy. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: error_cb 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
« no previous file with comments | « media/base/mock_filters.h ('k') | media/base/pipeline.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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 scoped_ptr<FilterCollection> MockFilterCollection::Create() { 78 scoped_ptr<FilterCollection> MockFilterCollection::Create() {
79 scoped_ptr<FilterCollection> collection(new FilterCollection()); 79 scoped_ptr<FilterCollection> collection(new FilterCollection());
80 collection->SetDemuxer(demuxer_); 80 collection->SetDemuxer(demuxer_);
81 collection->AddVideoDecoder(video_decoder_); 81 collection->AddVideoDecoder(video_decoder_);
82 collection->AddAudioDecoder(audio_decoder_); 82 collection->AddAudioDecoder(audio_decoder_);
83 collection->AddVideoRenderer(video_renderer_); 83 collection->AddVideoRenderer(video_renderer_);
84 collection->AddAudioRenderer(audio_renderer_); 84 collection->AddAudioRenderer(audio_renderer_);
85 return collection.Pass(); 85 return collection.Pass();
86 } 86 }
87 87
88 void RunPipelineStatusCB(const PipelineStatusCB& status_cb) {
89 status_cb.Run(PIPELINE_OK);
90 }
91
92 void RunPipelineStatusCB2(::testing::Unused,
93 const PipelineStatusCB& status_cb) {
94 status_cb.Run(PIPELINE_OK);
95 }
96
97 void RunPipelineStatusCB3(::testing::Unused, const PipelineStatusCB& status_cb,
98 ::testing::Unused) {
99 status_cb.Run(PIPELINE_OK);
100 }
101
102 void RunPipelineStatusCB4(::testing::Unused, const PipelineStatusCB& status_cb,
103 ::testing::Unused, ::testing::Unused) {
104 status_cb.Run(PIPELINE_OK);
105 }
106
107 void RunClosure(const base::Closure& closure) {
108 closure.Run();
109 }
110
111 MockFilter::MockFilter() : host_(NULL) {} 88 MockFilter::MockFilter() : host_(NULL) {}
112 89
113 MockFilter::~MockFilter() {} 90 MockFilter::~MockFilter() {}
114 91
115 void MockFilter::SetHost(FilterHost* host) { 92 void MockFilter::SetHost(FilterHost* host) {
116 host_ = host; 93 host_ = host;
117 } 94 }
118 95
119 MockStatisticsCB::MockStatisticsCB() {} 96 MockStatisticsCB::MockStatisticsCB() {}
120 97
121 MockStatisticsCB::~MockStatisticsCB() {} 98 MockStatisticsCB::~MockStatisticsCB() {}
122 99
123 } // namespace media 100 } // namespace media
OLDNEW
« no previous file with comments | « media/base/mock_filters.h ('k') | media/base/pipeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698