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

Unified Diff: ios/chrome/app/safe_mode/safe_mode_coordinator_unittest.mm

Issue 2709513004: [ObjC ARC] Converts ios/chrome/app/safe_mode:unit_tests to ARC. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « ios/chrome/app/safe_mode/BUILD.gn ('k') | ios/chrome/app/safe_mode/safe_mode_view_controller_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/app/safe_mode/safe_mode_coordinator_unittest.mm
diff --git a/ios/chrome/app/safe_mode/safe_mode_coordinator_unittest.mm b/ios/chrome/app/safe_mode/safe_mode_coordinator_unittest.mm
index 9e9060ccf492ba4a41c827b8d4b17f563eb78b39..a2b2b276ed3fff8871e7e922ad190ccb5c3b9c36 100644
--- a/ios/chrome/app/safe_mode/safe_mode_coordinator_unittest.mm
+++ b/ios/chrome/app/safe_mode/safe_mode_coordinator_unittest.mm
@@ -6,17 +6,20 @@
#import <UIKit/UIKit.h>
-#include "base/mac/scoped_nsobject.h"
#include "testing/gtest_mac.h"
sdefresne 2017/02/21 09:45:36 Can this be changed to the following? #include "t
stkhapugin 2017/02/21 12:23:04 Done.
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
TEST(SafeModeCoordinatorTest, RootVC) {
// Expect that starting a safe mode coordinator will populate the root view
// controller.
- base::scoped_nsobject<UIWindow> window(
- [[UIWindow alloc] initWithFrame:CGRectMake(0, 0, 100, 100)]);
+ UIWindow* window =
+ [[UIWindow alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];
EXPECT_TRUE([window rootViewController] == nil);
- base::scoped_nsobject<SafeModeCoordinator> safe_mode_coordinator(
- [[SafeModeCoordinator alloc] initWithWindow:window]);
+ SafeModeCoordinator* safe_mode_coordinator =
+ [[SafeModeCoordinator alloc] initWithWindow:window];
[safe_mode_coordinator start];
EXPECT_FALSE([window rootViewController] == nil);
}
« no previous file with comments | « ios/chrome/app/safe_mode/BUILD.gn ('k') | ios/chrome/app/safe_mode/safe_mode_view_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698