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_ |