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

Unified Diff: ios/chrome/browser/signin/authentication_service_unittest.mm

Issue 2935733002: [ObjC ARC] Converts ios/chrome/browser/signin:unit_tests to ARC. (Closed)
Patch Set: 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/browser/signin/authentication_service_unittest.mm
diff --git a/ios/chrome/browser/signin/authentication_service_unittest.mm b/ios/chrome/browser/signin/authentication_service_unittest.mm
index 4e11cd2c9b9a2f5003e9613e4b1c9f534e0e656e..d1077d1bb69e07ad87962607dd9204cd4d53e737 100644
--- a/ios/chrome/browser/signin/authentication_service_unittest.mm
+++ b/ios/chrome/browser/signin/authentication_service_unittest.mm
@@ -46,6 +46,10 @@
#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
+
using testing::_;
using testing::Invoke;
using testing::Return;
@@ -197,7 +201,7 @@ class AuthenticationServiceTest : public PlatformTest,
void SetCachedMDMInfo(ChromeIdentity* identity, NSDictionary* user_info) {
authentication_service_
->cached_mdm_infos_[base::SysNSStringToUTF8([identity gaiaID])]
- .reset([user_info retain]);
+ .reset(user_info);
}
bool HasCachedMDMInfo(ChromeIdentity* identity) {
« no previous file with comments | « ios/chrome/browser/signin/BUILD.gn ('k') | ios/chrome/browser/signin/chrome_identity_service_observer_bridge_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698