| Index: ios/chrome/browser/ui/bookmarks/bookmark_home_view_controller_unittest.mm
|
| diff --git a/ios/chrome/browser/ui/bookmarks/bookmark_home_view_controller_unittest.mm b/ios/chrome/browser/ui/bookmarks/bookmark_home_view_controller_unittest.mm
|
| index c26bb574e7d675318d408ccdabd6be0f90d88e69..26ad57e05a64c36acd34178292ce0fdbc98631d0 100644
|
| --- a/ios/chrome/browser/ui/bookmarks/bookmark_home_view_controller_unittest.mm
|
| +++ b/ios/chrome/browser/ui/bookmarks/bookmark_home_view_controller_unittest.mm
|
| @@ -2,7 +2,6 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "base/mac/scoped_nsobject.h"
|
| #include "components/bookmarks/browser/bookmark_model.h"
|
| #import "ios/chrome/browser/browser_state/test_chrome_browser_state.h"
|
| #import "ios/chrome/browser/ui/bookmarks/bookmark_home_handset_view_controller.h"
|
| @@ -10,6 +9,10 @@
|
| #import "ios/chrome/browser/ui/bookmarks/bookmark_promo_controller.h"
|
| #import "ios/chrome/browser/ui/bookmarks/bookmark_utils_ios.h"
|
|
|
| +#if !defined(__has_feature) || !__has_feature(objc_arc)
|
| +#error "This file requires ARC support."
|
| +#endif
|
| +
|
| using bookmarks::BookmarkNode;
|
|
|
| // A partial mock subclass that doesn't load any heavy weight subclasses.
|
| @@ -59,10 +62,10 @@ TEST_F(BookmarkHomeViewControllerTest, DeleteNodesUpdatesEditNodes) {
|
| toDelete.insert(f1);
|
| toDelete.insert(f2a);
|
|
|
| - base::scoped_nsobject<MockBookmarkHomeHandsetViewController> controller(
|
| + MockBookmarkHomeHandsetViewController* controller =
|
| [[MockBookmarkHomeHandsetViewController alloc]
|
| initWithLoader:nil
|
| - browserState:chrome_browser_state_.get()]);
|
| + browserState:chrome_browser_state_.get()];
|
|
|
| [controller resetEditNodes];
|
| [controller insertEditNode:f1 atIndexPath:nil];
|
|
|