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

Unified Diff: media/base/mock_callback.h

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 | « content/renderer/media/rtc_video_decoder_unittest.cc ('k') | media/base/mock_callback.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/mock_callback.h
diff --git a/media/base/mock_callback.h b/media/base/mock_callback.h
deleted file mode 100644
index 00d8276067cb441763d23544f8eff69ba0d43159..0000000000000000000000000000000000000000
--- a/media/base/mock_callback.h
+++ /dev/null
@@ -1,36 +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.
-
-#ifndef MEDIA_BASE_MOCK_CALLBACK_H_
-#define MEDIA_BASE_MOCK_CALLBACK_H_
-
-#include "base/callback.h"
-#include "media/base/pipeline_status.h"
-#include "testing/gmock/include/gmock/gmock.h"
-
-namespace media {
-
-// Utility mock for testing methods expecting Closures. See
-// NewExpectedClosure() below for a helper suitable when expectation order is
-// not checked (or when the expectation can be set at mock construction time).
-class MockClosure : public base::RefCountedThreadSafe<MockClosure> {
- public:
- MockClosure();
- MOCK_METHOD0(Run, void());
-
- protected:
- friend class base::RefCountedThreadSafe<MockClosure>;
- virtual ~MockClosure();
-
- private:
- DISALLOW_COPY_AND_ASSIGN(MockClosure);
-};
-
-// Return a callback that expects to be run once.
-base::Closure NewExpectedClosure();
-base::Callback<void(PipelineStatus)> NewExpectedStatusCB(PipelineStatus status);
-
-} // namespace media
-
-#endif // MEDIA_BASE_MOCK_CALLBACK_H_
« no previous file with comments | « content/renderer/media/rtc_video_decoder_unittest.cc ('k') | media/base/mock_callback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698