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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_config_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/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc
index 48b1a0a8ed8fef570341a697cbd07a8e22bd6fdb..37d475089392dabcee12c3e30f324b6b50d1d666 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <map>
+#include <memory>
#include <utility>
#include <vector>
@@ -1002,7 +1003,7 @@ TEST_F(DataReductionProxyConfigTest, AutoLoFiParamsSlowConnectionsFlag) {
// Tests if metrics for Lo-Fi accuracy are recorded properly.
TEST_F(DataReductionProxyConfigTest, LoFiAccuracy) {
- scoped_ptr<base::SimpleTestTickClock> tick_clock(
+ std::unique_ptr<base::SimpleTestTickClock> tick_clock(
new base::SimpleTestTickClock());
std::vector<base::TimeDelta> lofi_accuracy_recording_intervals;
@@ -1096,7 +1097,7 @@ TEST_F(DataReductionProxyConfigTest, LoFiAccuracy) {
// Tests if metrics for Lo-Fi accuracy are recorded properly at the specified
// interval.
TEST_F(DataReductionProxyConfigTest, LoFiAccuracyNonZeroDelay) {
- scoped_ptr<base::SimpleTestTickClock> tick_clock(
+ std::unique_ptr<base::SimpleTestTickClock> tick_clock(
new base::SimpleTestTickClock());
std::vector<base::TimeDelta> lofi_accuracy_recording_intervals;

Powered by Google App Engine
This is Rietveld 408576698