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

Unified Diff: components/certificate_transparency/log_proof_fetcher_unittest.cc

Issue 1921973002: Convert //components/[a-e]* 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
« no previous file with comments | « components/certificate_transparency/log_proof_fetcher.cc ('k') | components/client_update_protocol/ecdsa.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/certificate_transparency/log_proof_fetcher_unittest.cc
diff --git a/components/certificate_transparency/log_proof_fetcher_unittest.cc b/components/certificate_transparency/log_proof_fetcher_unittest.cc
index 39a5f3dd6e17330d9f964bea4caf75adc4e401e6..c46039ebf473c722c670715504ab69e28701231b 100644
--- a/components/certificate_transparency/log_proof_fetcher_unittest.cc
+++ b/components/certificate_transparency/log_proof_fetcher_unittest.cc
@@ -4,6 +4,7 @@
#include "components/certificate_transparency/log_proof_fetcher.h"
+#include <memory>
#include <string>
#include <utility>
@@ -222,7 +223,7 @@ class LogProofFetcherTest : public ::testing::Test {
kLogSchema,
kLogHost,
kLogPathPrefix)) {
- scoped_ptr<LogGetResponseHandler> handler(new LogGetResponseHandler());
+ std::unique_ptr<LogGetResponseHandler> handler(new LogGetResponseHandler());
handler_ = handler.get();
net::URLRequestFilter::GetInstance()->AddHostnameInterceptor(
@@ -306,7 +307,7 @@ class LogProofFetcherTest : public ::testing::Test {
base::RunLoop run_loop_;
net::TestURLRequestContext context_;
safe_json::TestingJsonParser::ScopedFactoryOverride factory_override_;
- scoped_ptr<LogProofFetcher> fetcher_;
+ std::unique_ptr<LogProofFetcher> fetcher_;
const GURL log_url_;
LogGetResponseHandler* handler_;
};
« no previous file with comments | « components/certificate_transparency/log_proof_fetcher.cc ('k') | components/client_update_protocol/ecdsa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698