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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/mock_callback.h ('k') | media/base/mock_filters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/mock_callback.cc
diff --git a/media/base/mock_callback.cc b/media/base/mock_callback.cc
new file mode 100644
index 0000000000000000000000000000000000000000..eb8c5132069570381adab503edb84566a8b32139
--- /dev/null
+++ b/media/base/mock_callback.cc
@@ -0,0 +1,25 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "media/base/mock_callback.h"
+
+using ::testing::_;
+using ::testing::StrictMock;
+
+namespace media {
+
+MockCallback::MockCallback() {}
+
+MockCallback::~MockCallback() {
+ Destructor();
+}
+
+MockCallback* NewExpectedCallback() {
+ StrictMock<MockCallback>* callback = new StrictMock<MockCallback>();
+ EXPECT_CALL(*callback, RunWithParams(_));
+ EXPECT_CALL(*callback, Destructor());
+ return callback;
+}
+
+} // namespace media
« 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