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

Unified Diff: google_apis/gaia/oauth2_api_call_flow_unittest.cc

Issue 1873663002: Convert //google_apis from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: google_apis/gaia/oauth2_api_call_flow_unittest.cc
diff --git a/google_apis/gaia/oauth2_api_call_flow_unittest.cc b/google_apis/gaia/oauth2_api_call_flow_unittest.cc
index bf4192c19f646262bfed9e4c32baac933c07d1e2..1332c97af3b1b75c89d21fa4be9e9411d2140a5d 100644
--- a/google_apis/gaia/oauth2_api_call_flow_unittest.cc
+++ b/google_apis/gaia/oauth2_api_call_flow_unittest.cc
@@ -4,17 +4,18 @@
//
// A complete set of unit tests for OAuth2MintTokenFlow.
+#include "google_apis/gaia/oauth2_api_call_flow.h"
+
+#include <memory>
#include <string>
#include <vector>
-#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/time/time.h"
#include "google_apis/gaia/gaia_urls.h"
#include "google_apis/gaia/google_service_auth_error.h"
#include "google_apis/gaia/oauth2_access_token_consumer.h"
#include "google_apis/gaia/oauth2_access_token_fetcher_impl.h"
-#include "google_apis/gaia/oauth2_api_call_flow.h"
#include "net/base/net_errors.h"
#include "net/http/http_request_headers.h"
#include "net/http/http_status_code.h"
@@ -68,11 +69,12 @@ class MockUrlFetcherFactory : public ScopedURLFetcherFactory,
URLFetcher::RequestType request_type,
URLFetcherDelegate* d));
- scoped_ptr<URLFetcher> CreateURLFetcher(int id,
- const GURL& url,
- URLFetcher::RequestType request_type,
- URLFetcherDelegate* d) override {
- return scoped_ptr<URLFetcher>(
+ std::unique_ptr<URLFetcher> CreateURLFetcher(
+ int id,
+ const GURL& url,
+ URLFetcher::RequestType request_type,
+ URLFetcherDelegate* d) override {
+ return std::unique_ptr<URLFetcher>(
CreateURLFetcherMock(id, url, request_type, d));
}
};

Powered by Google App Engine
This is Rietveld 408576698