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

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

Issue 6350001: Replace MockFilterCallback with MockCallback and simplify unit tests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: forgot some files Created 9 years, 11 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/filters/audio_renderer_base_unittest.cc » ('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 namespace media { 7 namespace media {
8 8
9 MockFilterCallback::MockFilterCallback() : run_destroy_callback_(true) {}
10
11 MockFilterCallback::MockFilterCallback(bool run_destroy_callback) :
12 run_destroy_callback_(run_destroy_callback) {
13 }
14
15 MockFilterCallback::~MockFilterCallback() {}
16
17 FilterCallback* MockFilterCallback::NewCallback() {
18 return new CallbackImpl(this, run_destroy_callback_);
19 }
20
21 MockDataSource::MockDataSource() {} 9 MockDataSource::MockDataSource() {}
22 10
23 MockDataSource::~MockDataSource() {} 11 MockDataSource::~MockDataSource() {}
24 12
25 MockDemuxer::MockDemuxer() {} 13 MockDemuxer::MockDemuxer() {}
26 14
27 MockDemuxer::~MockDemuxer() {} 15 MockDemuxer::~MockDemuxer() {}
28 16
29 MockDemuxerStream::MockDemuxerStream() {} 17 MockDemuxerStream::MockDemuxerStream() {}
30 18
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 bool MockFilter::requires_message_loop() const { 87 bool MockFilter::requires_message_loop() const {
100 return requires_message_loop_; 88 return requires_message_loop_;
101 } 89 }
102 90
103 const char* MockFilter::message_loop_name() const { 91 const char* MockFilter::message_loop_name() const {
104 return "MockFilter"; 92 return "MockFilter";
105 } 93 }
106 94
107 95
108 } // namespace media 96 } // namespace media
OLDNEW
« no previous file with comments | « media/base/mock_filters.h ('k') | media/filters/audio_renderer_base_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698