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

Unified Diff: ios/chrome/app/main_application_delegate_unittest.mm

Issue 2935713002: [ObjC ARC] Converts ios/chrome/app:unit_tests to ARC. (Closed)
Patch Set: Removed spurious include. Created 3 years, 6 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/app/main_application_delegate_unittest.mm
diff --git a/ios/chrome/app/main_application_delegate_unittest.mm b/ios/chrome/app/main_application_delegate_unittest.mm
index ba947d29f2e9b04795991ff45db5977137fffa13..621237d2e532921bae2f93dceadb458a5a05093d 100644
--- a/ios/chrome/app/main_application_delegate_unittest.mm
+++ b/ios/chrome/app/main_application_delegate_unittest.mm
@@ -7,12 +7,15 @@
#import <Foundation/Foundation.h>
#import "base/mac/foundation_util.h"
-#include "base/mac/scoped_nsobject.h"
#import "ios/chrome/app/chrome_overlay_window_testing.h"
#include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
#include "testing/platform_test.h"
#import "third_party/ocmock/OCMock/OCMock.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
// Tests that the application does not crash if |applicationDidEnterBackground|
// is called when the application is launched in background.
// http://crbug.com/437307
@@ -26,8 +29,7 @@ TEST(MainApplicationDelegateTest, CrashIfNotInitialized) {
[[[application stub] andReturnValue:OCMOCK_VALUE(backgroundState)]
applicationState];
- MainApplicationDelegate* delegate =
- [[[MainApplicationDelegate alloc] init] autorelease];
+ MainApplicationDelegate* delegate = [[MainApplicationDelegate alloc] init];
[delegate application:application didFinishLaunchingWithOptions:nil];
[delegate applicationDidEnterBackground:application];
« no previous file with comments | « ios/chrome/app/deferred_initialization_runner_unittest.mm ('k') | ios/chrome/app/main_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698