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

Unified Diff: media/base/mock_task.h

Issue 6056008: Move lots of GMock stuff out of line. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright junk Created 9 years, 12 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
Index: media/base/mock_task.h
diff --git a/media/base/mock_task.h b/media/base/mock_task.h
index cb6e0de7f64415518b4e701316d0813d8fea11fc..6d418a18ec3fb8217e3443bd3eb4182520fbece7 100644
--- a/media/base/mock_task.h
+++ b/media/base/mock_task.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// 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.
@@ -63,17 +63,10 @@ ACTION(InvokeRunnable) {
class TaskMocker {
public:
- TaskMocker()
- : outstanding_tasks_(0) {
- }
- ~TaskMocker() {
- CHECK(outstanding_tasks_ == 0)
- << "If outstanding_tasks_ is not zero, tasks have been leaked.";
- }
-
- Task* CreateTask() {
- return new CountingTask(this);
- }
+ TaskMocker();
+ ~TaskMocker();
+
+ Task* CreateTask();
MOCK_METHOD0(Run, void());
« gpu/gpu.gyp ('K') | « media/base/mock_filters.cc ('k') | media/base/mock_task.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698