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

Unified Diff: base/test/mock_callback.h

Issue 11238034: Added completion notification to Profile's ClearNetworkingHistorySince. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Increased similarity threshold... Created 8 years, 2 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: base/test/mock_callback.h
diff --git a/base/mac/bind_objc_block.h b/base/test/mock_callback.h
similarity index 50%
copy from base/mac/bind_objc_block.h
copy to base/test/mock_callback.h
index 2d48c7d397858f575448b60a0be2e13f3c286384..23e9506b585ff5b540f67207611482ccbb1b06b6 100644
--- a/base/mac/bind_objc_block.h
+++ b/base/test/mock_callback.h
@@ -2,17 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef BASE_MAC_BIND_OBJC_BLOCK_H_
-#define BASE_MAC_BIND_OBJC_BLOCK_H_
+#ifndef BASE_TEST_MOCK_CALLBACK_H_
+#define BASE_TEST_MOCK_CALLBACK_H_
-#include "base/base_export.h"
#include "base/callback_forward.h"
namespace base {
-// Construct a closure from an objective-C block.
-BASE_EXPORT base::Closure BindBlock(void(^block)());
+// Returns a new mock closure that expects to be Run() exactly once.
+Closure NewExpectedClosure();
} // namespace base
-#endif // BASE_MAC_BIND_OBJC_BLOCK_H_
+#endif // BASE_TEST_MOCK_CALLBACK_H_
« no previous file with comments | « base/base.gyp ('k') | base/test/mock_callback.cc » ('j') | base/test/mock_callback.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698