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

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

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? Created 4 years, 8 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/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 9b5fa1c0ff87e319a459f120efc9b9648b57401a..5263f67df0685835a34a43565f7a5c2163476389 100644
--- a/ios/chrome/browser/signin/gaia_auth_fetcher_ios_unittest.mm
+++ b/ios/chrome/browser/signin/gaia_auth_fetcher_ios_unittest.mm
@@ -4,8 +4,9 @@
#include "ios/chrome/browser/signin/gaia_auth_fetcher_ios.h"
+#include <memory>
+
#import "base/mac/scoped_nsobject.h"
-#include "base/memory/scoped_ptr.h"
#include "base/run_loop.h"
#include "google_apis/gaia/gaia_urls.h"
#include "ios/chrome/browser/signin/gaia_auth_fetcher_ios_private.h"
@@ -77,7 +78,7 @@ class GaiaAuthFetcherIOSTest : public PlatformTest {
// BrowserState, required for WKWebView creation.
web::TestBrowserState browser_state_;
MockGaiaConsumer consumer_;
- scoped_ptr<GaiaAuthFetcherIOS> gaia_auth_fetcher_;
+ std::unique_ptr<GaiaAuthFetcherIOS> gaia_auth_fetcher_;
};
// Tests that the cancel mechanism works properly by cancelling an OAuthLogin
@@ -134,7 +135,7 @@ TEST_F(GaiaAuthFetcherIOSTest, StartGetCheckConnectionInfo) {
EXPECT_CALL(consumer_, OnGetCheckConnectionInfoSuccess(data)).Times(1);
// Set up the fake URL Fetcher.
- scoped_ptr<net::FakeURLFetcherFactory> fake_url_fetcher_factory(
+ std::unique_ptr<net::FakeURLFetcherFactory> fake_url_fetcher_factory(
new net::FakeURLFetcherFactory(new net::URLFetcherImplFactory()));
fake_url_fetcher_factory->SetFakeResponse(
GaiaUrls::GetInstance()->GetCheckConnectionInfoURLWithSource(
« no previous file with comments | « ios/chrome/browser/signin/gaia_auth_fetcher_ios.h ('k') | ios/chrome/browser/signin/gaia_cookie_manager_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698