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

Unified Diff: ios/chrome/browser/ui/dialogs/nsurl_protection_space_util_unittest.mm

Issue 2686913003: [ObjC ARC] Converts ios/chrome/browser/ui/dialogs:unit_tests_internal 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/browser/ui/dialogs/dialog_presenter_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/dialogs/nsurl_protection_space_util_unittest.mm
diff --git a/ios/chrome/browser/ui/dialogs/nsurl_protection_space_util_unittest.mm b/ios/chrome/browser/ui/dialogs/nsurl_protection_space_util_unittest.mm
index 6a92896785fbe4a4c14b0cb8ca8b12bde13bf248..f89669ab93e843faa9153b7acabd1c6714d7b46f 100644
--- a/ios/chrome/browser/ui/dialogs/nsurl_protection_space_util_unittest.mm
+++ b/ios/chrome/browser/ui/dialogs/nsurl_protection_space_util_unittest.mm
@@ -5,7 +5,6 @@
#import "ios/chrome/browser/ui/dialogs/nsurl_protection_space_util.h"
#include "base/ios/ios_util.h"
-#import "base/mac/scoped_nsobject.h"
#include "base/strings/sys_string_conversions.h"
#include "components/strings/grit/components_strings.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -14,6 +13,10 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/l10n/l10n_util_mac.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
using namespace ios_internal::nsurlprotectionspace_util;
namespace {
@@ -27,11 +30,11 @@ NSString* const kTestHttpsOrigin = @"https://chromium.org:80";
NSURLProtectionSpace* GetProtectionSpaceForHost(NSString* host,
NSString* protocol,
NSInteger port) {
- return [[[NSURLProtectionSpace alloc] initWithHost:host
- port:port
- protocol:protocol
- realm:nil
- authenticationMethod:nil] autorelease];
+ return [[NSURLProtectionSpace alloc] initWithHost:host
+ port:port
+ protocol:protocol
+ realm:nil
+ authenticationMethod:nil];
}
// Returns protection space for the given |host| and |protocol| and port 80.
@@ -43,11 +46,11 @@ NSURLProtectionSpace* GetProtectionSpaceForHost(NSString* host,
// Returns protection space for the given proxy |host| and |protocol|.
NSURLProtectionSpace* GetProtectionSpaceForProxyHost(NSString* host,
NSString* type) {
- return [[[NSURLProtectionSpace alloc] initWithProxyHost:host
- port:80
- type:type
- realm:nil
- authenticationMethod:nil] autorelease];
+ return [[NSURLProtectionSpace alloc] initWithProxyHost:host
+ port:80
+ type:type
+ realm:nil
+ authenticationMethod:nil];
}
} // namespace
« no previous file with comments | « ios/chrome/browser/ui/dialogs/dialog_presenter_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698