| 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];
|
| }));
|
|
|
|
|