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

Unified Diff: ios/chrome/browser/signin/gaia_auth_fetcher_ios_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
« no previous file with comments | « ios/chrome/browser/signin/chrome_identity_service_observer_bridge_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/signin/gaia_auth_fetcher_ios_unittest.mm
diff --git a/ios/chrome/browser/signin/gaia_auth_fetcher_ios_unittest.mm b/ios/chrome/browser/signin/gaia_auth_fetcher_ios_unittest.mm
index aad6ed6ab8f2dd0c72d6602130e5e2b3f148169f..0f45e75ba909a025bbbd253eb745d9366e1033ae 100644
--- a/ios/chrome/browser/signin/gaia_auth_fetcher_ios_unittest.mm
+++ b/ios/chrome/browser/signin/gaia_auth_fetcher_ios_unittest.mm
@@ -6,7 +6,6 @@
#include <memory>
-#import "base/mac/scoped_nsobject.h"
#include "base/run_loop.h"
#include "google_apis/gaia/gaia_urls.h"
#include "ios/chrome/browser/signin/gaia_auth_fetcher_ios_private.h"
@@ -20,6 +19,10 @@
#import "third_party/ocmock/OCMock/OCMock.h"
#import "third_party/ocmock/gtest_support.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace {
class FakeGaiaAuthFetcherIOSBridge : public GaiaAuthFetcherIOSBridge {
@@ -31,12 +34,11 @@ class FakeGaiaAuthFetcherIOSBridge : public GaiaAuthFetcherIOSBridge {
private:
WKWebView* BuildWKWebView() override {
if (!mock_web_view_) {
- mock_web_view_.reset(
- [[OCMockObject niceMockForClass:[WKWebView class]] retain]);
+ mock_web_view_ = [OCMockObject niceMockForClass:[WKWebView class]];
}
return mock_web_view_;
}
- base::scoped_nsobject<id> mock_web_view_;
+ id mock_web_view_;
};
class MockGaiaConsumer : public GaiaAuthConsumer {
« no previous file with comments | « ios/chrome/browser/signin/chrome_identity_service_observer_bridge_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698