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/chrome/browser/ui/settings/autofill_profile_edit_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/autofill_profile_edit_collection_view_controller_unittest.mm
diff --git a/ios/chrome/browser/ui/settings/autofill_profile_edit_collection_view_controller_unittest.mm b/ios/chrome/browser/ui/settings/autofill_profile_edit_collection_view_controller_unittest.mm
index d3cabc0f6108a49984606319941ee110542f1b64..fc867bcea2205b0579ca00ae56ffe8694c33a494 100644
--- a/ios/chrome/browser/ui/settings/autofill_profile_edit_collection_view_controller_unittest.mm
+++ b/ios/chrome/browser/ui/settings/autofill_profile_edit_collection_view_controller_unittest.mm
@@ -7,7 +7,6 @@
#include <memory>
#include "base/guid.h"
-#import "base/mac/scoped_nsobject.h"
#include "base/message_loop/message_loop.h"
#include "base/strings/sys_string_conversions.h"
#include "base/strings/utf_string_conversions.h"
@@ -21,6 +20,10 @@
#include "ios/web/public/test/test_web_thread_bundle.h"
#include "testing/platform_test.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace {
const char kTestFullName[] = "That Guy John";
@@ -71,16 +74,16 @@ class AutofillProfileEditCollectionViewControllerTest : public PlatformTest {
personal_data_manager_->SaveImportedProfile(autofill_profile);
observer.Wait(); // Wait for the completion of the asynchronous operation.
- autofill_profile_edit_controller_.reset(
- [[AutofillProfileEditCollectionViewController
+ autofill_profile_edit_controller_ =
+ [AutofillProfileEditCollectionViewController
controllerWithProfile:autofill_profile
- personalDataManager:personal_data_manager_] retain]);
+ personalDataManager:personal_data_manager_];
}
web::TestWebThreadBundle thread_bundle_;
std::unique_ptr<TestChromeBrowserState> chrome_browser_state_;
autofill::PersonalDataManager* personal_data_manager_;
- base::scoped_nsobject<AutofillProfileEditCollectionViewController>
+ AutofillProfileEditCollectionViewController*
autofill_profile_edit_controller_;
};

Powered by Google App Engine
This is Rietveld 408576698