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