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

Unified Diff: components/certificate_reporting/error_reporter_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
Index: components/certificate_reporting/error_reporter_unittest.cc
diff --git a/components/certificate_reporting/error_reporter_unittest.cc b/components/certificate_reporting/error_reporter_unittest.cc
index e38a47c631461e5132fb06c7212cf1e6430c2efa..cb3d2e0b0078942cd58a2e2ecaa7bbdb2db1f488 100644
--- a/components/certificate_reporting/error_reporter_unittest.cc
+++ b/components/certificate_reporting/error_reporter_unittest.cc
@@ -13,6 +13,7 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "components/certificate_reporting/encrypted_cert_logger.pb.h"
#include "crypto/curve25519.h"
#include "net/url_request/certificate_report_sender.h"
@@ -74,7 +75,7 @@ TEST_F(ErrorReporterTest, ExtendedReportingSendReport) {
GURL https_url(kDummyHttpsReportUri);
ErrorReporter https_reporter(https_url, server_public_key_,
kServerPublicKeyTestVersion,
- make_scoped_ptr(mock_report_sender));
+ base::WrapUnique(mock_report_sender));
https_reporter.SendExtendedReportingReport(kDummyReport);
EXPECT_EQ(mock_report_sender->latest_report_uri(), https_url);
EXPECT_EQ(mock_report_sender->latest_report(), kDummyReport);
@@ -86,7 +87,7 @@ TEST_F(ErrorReporterTest, ExtendedReportingSendReport) {
GURL http_url(kDummyHttpReportUri);
ErrorReporter http_reporter(http_url, server_public_key_,
kServerPublicKeyTestVersion,
- make_scoped_ptr(http_mock_report_sender));
+ base::WrapUnique(http_mock_report_sender));
http_reporter.SendExtendedReportingReport(kDummyReport);
EXPECT_EQ(http_mock_report_sender->latest_report_uri(), http_url);
« no previous file with comments | « components/certificate_reporting/error_reporter.cc ('k') | components/certificate_transparency/log_proof_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698