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

Side by Side Diff: media/base/mock_callback.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_callback.h ('k') | media/base/mock_filters.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "media/base/mock_callback.h"
6
7 using ::testing::_;
8 using ::testing::StrictMock;
9
10 namespace media {
11
12 MockCallback::MockCallback() {}
13
14 MockCallback::~MockCallback() {
15 Destructor();
16 }
17
18 MockCallback* NewExpectedCallback() {
19 StrictMock<MockCallback>* callback = new StrictMock<MockCallback>();
20 EXPECT_CALL(*callback, RunWithParams(_));
21 EXPECT_CALL(*callback, Destructor());
22 return callback;
23 }
24
25 } // namespace media
OLDNEW
« no previous file with comments | « media/base/mock_callback.h ('k') | media/base/mock_filters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698