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

Unified Diff: components/proximity_auth/cryptauth/cryptauth_api_call_flow_unittest.cc

Issue 1912433002: Convert //components/proximity_auth from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits 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: components/proximity_auth/cryptauth/cryptauth_api_call_flow_unittest.cc
diff --git a/components/proximity_auth/cryptauth/cryptauth_api_call_flow_unittest.cc b/components/proximity_auth/cryptauth/cryptauth_api_call_flow_unittest.cc
index 87de7cef8e40d9889bea5b7d2f18721aa615500e..0fff019a57baaedea381e5287555536b6ff2cf07 100644
--- a/components/proximity_auth/cryptauth/cryptauth_api_call_flow_unittest.cc
+++ b/components/proximity_auth/cryptauth/cryptauth_api_call_flow_unittest.cc
@@ -4,8 +4,9 @@
#include "components/proximity_auth/cryptauth/cryptauth_api_call_flow.h"
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/test/test_simple_task_runner.h"
#include "net/base/net_errors.h"
#include "net/url_request/test_url_fetcher_factory.h"
@@ -100,12 +101,12 @@ class ProximityAuthCryptAuthApiCallFlowTest
void OnRequestEnd(int fetcher_id) override {}
net::TestURLFetcher* url_fetcher_;
- scoped_ptr<std::string> result_;
- scoped_ptr<std::string> error_message_;
+ std::unique_ptr<std::string> result_;
+ std::unique_ptr<std::string> error_message_;
private:
scoped_refptr<net::TestURLRequestContextGetter> url_request_context_getter_;
- scoped_ptr<net::TestURLFetcherFactory> url_fetcher_factory_;
+ std::unique_ptr<net::TestURLFetcherFactory> url_fetcher_factory_;
CryptAuthApiCallFlow flow_;
DISALLOW_COPY_AND_ASSIGN(ProximityAuthCryptAuthApiCallFlowTest);

Powered by Google App Engine
This is Rietveld 408576698