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

Unified Diff: ios/chrome/browser/ui/alert_coordinator/input_alert_coordinator_unittest.mm

Issue 2514843002: [ObjC ARC] Converts ios/chrome/browser/ui/alert_coordinator:unit_tests to ARC.Automatically gener… (Closed)
Patch Set: removed scoped_nsobject Created 4 years 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
« no previous file with comments | « ios/chrome/browser/ui/alert_coordinator/alert_coordinator_unittest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/alert_coordinator/input_alert_coordinator_unittest.mm
diff --git a/ios/chrome/browser/ui/alert_coordinator/input_alert_coordinator_unittest.mm b/ios/chrome/browser/ui/alert_coordinator/input_alert_coordinator_unittest.mm
index 4aebd39a8a443ad7622e00ba59ff654aae16d283..5cbf9325c703bccde1e0839a447d0f1e03d8b56a 100644
--- a/ios/chrome/browser/ui/alert_coordinator/input_alert_coordinator_unittest.mm
+++ b/ios/chrome/browser/ui/alert_coordinator/input_alert_coordinator_unittest.mm
@@ -8,14 +8,17 @@
#import "third_party/ocmock/OCMock/OCMock.h"
#include "third_party/ocmock/gtest_support.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
TEST(InputAlertCoordinatorTest, AddTextField) {
// Setup.
- UIViewController* viewController =
- [[[UIViewController alloc] init] autorelease];
- InputAlertCoordinator* alertCoordinator = [[[InputAlertCoordinator alloc]
- initWithBaseViewController:viewController
- title:@"Test"
- message:nil] autorelease];
+ UIViewController* viewController = [[UIViewController alloc] init];
+ InputAlertCoordinator* alertCoordinator =
+ [[InputAlertCoordinator alloc] initWithBaseViewController:viewController
+ title:@"Test"
+ message:nil];
void (^emptyHandler)(UITextField* textField) = ^(UITextField* textField) {
};
@@ -32,12 +35,11 @@ TEST(InputAlertCoordinatorTest, AddTextField) {
TEST(InputAlertCoordinatorTest, GetTextFields) {
// Setup.
- UIViewController* viewController =
- [[[UIViewController alloc] init] autorelease];
- InputAlertCoordinator* alertCoordinator = [[[InputAlertCoordinator alloc]
- initWithBaseViewController:viewController
- title:@"Test"
- message:nil] autorelease];
+ UIViewController* viewController = [[UIViewController alloc] init];
+ InputAlertCoordinator* alertCoordinator =
+ [[InputAlertCoordinator alloc] initWithBaseViewController:viewController
+ title:@"Test"
+ message:nil];
NSArray<UITextField*>* array = [NSArray array];
id alert =
« no previous file with comments | « ios/chrome/browser/ui/alert_coordinator/alert_coordinator_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698