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

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

Issue 6969026: Convert Filter::Seek() to use new callback system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More CR fixes Created 9 years, 7 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_impl.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "media/base/filter_host.h" 8 #include "media/base/filter_host.h"
9 9
10 using ::testing::_; 10 using ::testing::_;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 collection->AddVideoRenderer(video_renderer_); 162 collection->AddVideoRenderer(video_renderer_);
163 collection->AddAudioRenderer(audio_renderer_); 163 collection->AddAudioRenderer(audio_renderer_);
164 return collection; 164 return collection;
165 } 165 }
166 166
167 void RunFilterCallback(::testing::Unused, FilterCallback* callback) { 167 void RunFilterCallback(::testing::Unused, FilterCallback* callback) {
168 callback->Run(); 168 callback->Run();
169 delete callback; 169 delete callback;
170 } 170 }
171 171
172 void RunFilterStatusCB(::testing::Unused, const FilterStatusCB& cb) {
173 cb.Run(PIPELINE_OK);
174 }
175
172 void RunPipelineStatusCallback( 176 void RunPipelineStatusCallback(
173 PipelineStatus status, PipelineStatusCallback* callback) { 177 PipelineStatus status, PipelineStatusCallback* callback) {
174 callback->Run(status); 178 callback->Run(status);
175 delete callback; 179 delete callback;
176 } 180 }
177 181
178 void RunFilterCallback3(::testing::Unused, FilterCallback* callback, 182 void RunFilterCallback3(::testing::Unused, FilterCallback* callback,
179 ::testing::Unused) { 183 ::testing::Unused) {
180 callback->Run(); 184 callback->Run();
181 delete callback; 185 delete callback;
(...skipping 11 matching lines...) Expand all
193 MockFilter::MockFilter() { 197 MockFilter::MockFilter() {
194 } 198 }
195 199
196 MockFilter::~MockFilter() {} 200 MockFilter::~MockFilter() {}
197 201
198 MockStatisticsCallback::MockStatisticsCallback() {} 202 MockStatisticsCallback::MockStatisticsCallback() {}
199 203
200 MockStatisticsCallback::~MockStatisticsCallback() {} 204 MockStatisticsCallback::~MockStatisticsCallback() {}
201 205
202 } // namespace media 206 } // namespace media
OLDNEW
« no previous file with comments | « media/base/mock_filters.h ('k') | media/base/pipeline_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698