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

Unified Diff: media/base/mock_callback.cc

Issue 11316293: Replace WaitableEvents and ConditionalVariables in VideoRendererBase tests with MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bustage Created 8 years 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/pipeline_unittest.cc » ('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
deleted file mode 100644
index e9d2da356b14c1076697401e1817ecb6a7396c01..0000000000000000000000000000000000000000
--- a/media/base/mock_callback.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) 2012 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"
-
-#include "base/bind.h"
-
-using ::testing::_;
-using ::testing::StrictMock;
-
-namespace media {
-
-MockClosure::MockClosure() {}
-MockClosure::~MockClosure() {}
-
-base::Closure NewExpectedClosure() {
- StrictMock<MockClosure>* callback = new StrictMock<MockClosure>();
- EXPECT_CALL(*callback, Run());
- return base::Bind(&MockClosure::Run, callback);
-}
-
-class MockStatusCB : public base::RefCountedThreadSafe<MockStatusCB> {
- public:
- MockStatusCB() {}
- MOCK_METHOD1(Run, void(PipelineStatus));
-
- protected:
- friend class base::RefCountedThreadSafe<MockStatusCB>;
- virtual ~MockStatusCB() {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(MockStatusCB);
-};
-
-base::Callback<void(PipelineStatus)> NewExpectedStatusCB(
- PipelineStatus status) {
- StrictMock<MockStatusCB>* callback = new StrictMock<MockStatusCB>();
- EXPECT_CALL(*callback, Run(status));
- return base::Bind(&MockStatusCB::Run, callback);
-}
-
-} // namespace media
« no previous file with comments | « media/base/mock_callback.h ('k') | media/base/pipeline_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698