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

Unified Diff: ios/web/web_state/ui/web_view_js_utils_unittest.mm

Issue 2933363002: [ObjC ARC] Converts ios/web:ios_web_web_state_ui_unittests to ARC. (Closed)
Patch Set: Review nits. Created 3 years, 6 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: ios/web/web_state/ui/web_view_js_utils_unittest.mm
diff --git a/ios/web/web_state/ui/web_view_js_utils_unittest.mm b/ios/web/web_state/ui/web_view_js_utils_unittest.mm
index 6ca075a72c9f76827f914baf2f8dcc3c6a6fb446..42060026ab695c00cce4d50aaa4b8dc8e0947425 100644
--- a/ios/web/web_state/ui/web_view_js_utils_unittest.mm
+++ b/ios/web/web_state/ui/web_view_js_utils_unittest.mm
@@ -10,6 +10,10 @@
#include "base/values.h"
#include "testing/gtest/include/gtest/gtest.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace web {
// Tests that ValueResultFromWKResult converts nil value to nullptr.
@@ -133,7 +137,7 @@ TEST(WebViewJsUtilsTest, ValueResultFromDictionaryWithDepthCheckWKResult) {
test_dictionary_2[obj_c_key] = test_dictionary;
// Break the retain cycle so that the dictionaries are freed.
- base::ScopedClosureRunner runner(base::BindBlock(^{
+ base::ScopedClosureRunner runner(base::BindBlockArc(^{
[test_dictionary_2 removeAllObjects];
}));
@@ -166,7 +170,7 @@ TEST(WebViewJsUtilsTest, ValueResultFromArrayWithDepthCheckWKResult) {
test_array_2[0] = test_array;
// Break the retain cycle so that the arrays are freed.
- base::ScopedClosureRunner runner(base::BindBlock(^{
+ base::ScopedClosureRunner runner(base::BindBlockArc(^{
[test_array removeAllObjects];
}));

Powered by Google App Engine
This is Rietveld 408576698