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

Unified Diff: ios/chrome/browser/ui/settings/contextual_search_collection_view_controller_unittest.mm

Issue 2806323003: [ObjC ARC] Converts ios/chrome/browser/ui/settings:unit_tests to ARC. (Closed)
Patch Set: rebase Created 3 years, 8 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/chrome/browser/ui/settings/contextual_search_collection_view_controller_unittest.mm
diff --git a/ios/chrome/browser/ui/settings/contextual_search_collection_view_controller_unittest.mm b/ios/chrome/browser/ui/settings/contextual_search_collection_view_controller_unittest.mm
index be1d1f6b059e16c778957328360b0e86fa8b8473..005162fc372ff9fc945a57dfd5f0a8bb3d54edda 100644
--- a/ios/chrome/browser/ui/settings/contextual_search_collection_view_controller_unittest.mm
+++ b/ios/chrome/browser/ui/settings/contextual_search_collection_view_controller_unittest.mm
@@ -16,6 +16,10 @@
#include "testing/platform_test.h"
#include "ui/base/l10n/l10n_util_mac.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace {
class ContextualSearchCollectionViewControllerTest
@@ -24,18 +28,18 @@ class ContextualSearchCollectionViewControllerTest
ContextualSearchCollectionViewControllerTest() {
TestChromeBrowserState::Builder browserStateBuilder;
browser_state_ = browserStateBuilder.Build();
- tts_permissions_.reset([[TouchToSearchPermissionsMediator alloc]
- initWithBrowserState:browser_state_.get()]);
+ tts_permissions_ = [[TouchToSearchPermissionsMediator alloc]
+ initWithBrowserState:browser_state_.get()];
}
- CollectionViewController* NewController() override NS_RETURNS_RETAINED {
+ CollectionViewController* InstantiateController() override {
return [[ContextualSearchCollectionViewController alloc]
initWithPermissions:tts_permissions_];
}
web::TestWebThreadBundle thread_bundle_;
std::unique_ptr<TestChromeBrowserState> browser_state_;
- base::scoped_nsobject<TouchToSearchPermissionsMediator> tts_permissions_;
+ TouchToSearchPermissionsMediator* tts_permissions_;
};
TEST_F(ContextualSearchCollectionViewControllerTest,

Powered by Google App Engine
This is Rietveld 408576698