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

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: Final touches. 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 55%
copy from base/mac/bind_objc_block.h
copy to base/test/mock_callback.h
index 2d48c7d397858f575448b60a0be2e13f3c286384..111b61fb7f0f7abc67d13cfc49afc690d537a76a 100644
--- a/base/mac/bind_objc_block.h
+++ b/base/test/mock_callback.h
@@ -2,17 +2,17 @@
// 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.
+BASE_EXPORT Closure NewExpectedClosure();
} // namespace base
-#endif // BASE_MAC_BIND_OBJC_BLOCK_H_
+#endif // BASE_TEST_MOCK_CALLBACK_H_

Powered by Google App Engine
This is Rietveld 408576698