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

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

Issue 6171009: Remove MessageLoop methods from Filter interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Applied more CR suggestions & removed message_loop() methods where possible. 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/decoder_base.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 namespace media { 7 namespace media {
8 8
9 MockFilterCallback::MockFilterCallback() : run_destroy_callback_(true) {} 9 MockFilterCallback::MockFilterCallback() : run_destroy_callback_(true) {}
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 void DestroyFilterCallback(::testing::Unused, FilterCallback* callback) { 80 void DestroyFilterCallback(::testing::Unused, FilterCallback* callback) {
81 delete callback; 81 delete callback;
82 } 82 }
83 83
84 void RunStopFilterCallback(FilterCallback* callback) { 84 void RunStopFilterCallback(FilterCallback* callback) {
85 callback->Run(); 85 callback->Run();
86 delete callback; 86 delete callback;
87 } 87 }
88 88
89 MockFilter::MockFilter() : 89 MockFilter::MockFilter() {
90 requires_message_loop_(false) {
91 }
92
93 MockFilter::MockFilter(bool requires_message_loop) :
94 requires_message_loop_(requires_message_loop) {
95 } 90 }
96 91
97 MockFilter::~MockFilter() {} 92 MockFilter::~MockFilter() {}
98 93
99 bool MockFilter::requires_message_loop() const {
100 return requires_message_loop_;
101 }
102
103 const char* MockFilter::message_loop_name() const {
104 return "MockFilter";
105 }
106
107
108 } // namespace media 94 } // namespace media
OLDNEW
« no previous file with comments | « media/base/mock_filters.h ('k') | media/filters/decoder_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698