| OLD | NEW |
| 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 Loading... |
| 162 cb.Run(PIPELINE_OK); | 162 cb.Run(PIPELINE_OK); |
| 163 } | 163 } |
| 164 | 164 |
| 165 void RunPipelineStatusCB(PipelineStatus status, const PipelineStatusCB& cb) { | 165 void RunPipelineStatusCB(PipelineStatus status, const PipelineStatusCB& cb) { |
| 166 cb.Run(status); | 166 cb.Run(status); |
| 167 } | 167 } |
| 168 | 168 |
| 169 void RunFilterCallback3(::testing::Unused, const base::Closure& callback, | 169 void RunFilterCallback3(::testing::Unused, const base::Closure& callback, |
| 170 ::testing::Unused) { | 170 ::testing::Unused) { |
| 171 callback.Run(); | 171 callback.Run(); |
| 172 } |
| 172 | 173 |
| 174 void RunFilterCallback4(::testing::Unused, const base::Closure& callback, |
| 175 ::testing::Unused, ::testing::Unused) { |
| 176 callback.Run(); |
| 173 } | 177 } |
| 174 | 178 |
| 175 void RunStopFilterCallback(const base::Closure& callback) { | 179 void RunStopFilterCallback(const base::Closure& callback) { |
| 176 callback.Run(); | 180 callback.Run(); |
| 177 } | 181 } |
| 178 | 182 |
| 179 MockFilter::MockFilter() { | 183 MockFilter::MockFilter() { |
| 180 } | 184 } |
| 181 | 185 |
| 182 MockFilter::~MockFilter() {} | 186 MockFilter::~MockFilter() {} |
| 183 | 187 |
| 184 MockStatisticsCallback::MockStatisticsCallback() {} | 188 MockStatisticsCallback::MockStatisticsCallback() {} |
| 185 | 189 |
| 186 MockStatisticsCallback::~MockStatisticsCallback() {} | 190 MockStatisticsCallback::~MockStatisticsCallback() {} |
| 187 | 191 |
| 188 } // namespace media | 192 } // namespace media |
| OLD | NEW |