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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h

Issue 1873263002: Convert //components/data_reduction_proxy from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address feedback 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_test_utils.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h
index 59b80422ed9c963b3a019484a0ab47f6d084580c..5f994a8348e88a2a823a1be1b1e1198470d3ac1c 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h
@@ -5,7 +5,8 @@
#ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_CONFIG_TEST_UTILS_H_
#define COMPONENTS_DATA_REDUCTION_PROXY_CORE_BROWSER_DATA_REDUCTION_PROXY_CONFIG_TEST_UTILS_H_
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h"
#include "net/base/network_interfaces.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -40,7 +41,7 @@ class TestDataReductionProxyConfig : public DataReductionProxyConfig {
// This permits any DataReductionProxyConfigValues to be used (such as
// DataReductionProxyParams or DataReductionProxyMutableConfigValues).
TestDataReductionProxyConfig(
- scoped_ptr<DataReductionProxyConfigValues> config_values,
+ std::unique_ptr<DataReductionProxyConfigValues> config_values,
net::NetLog* net_log,
DataReductionProxyConfigurator* configurator,
DataReductionProxyEventCreator* event_creator);
@@ -81,7 +82,7 @@ class TestDataReductionProxyConfig : public DataReductionProxyConfig {
}
private:
- scoped_ptr<net::NetworkInterfaceList> network_interfaces_;
+ std::unique_ptr<net::NetworkInterfaceList> network_interfaces_;
// True if network quality is slow enough to turn Auto Lo-Fi ON.
bool network_quality_prohibitively_slow_;
@@ -93,7 +94,7 @@ class MockDataReductionProxyConfig : public TestDataReductionProxyConfig {
public:
// Creates a |MockDataReductionProxyConfig|.
MockDataReductionProxyConfig(
- scoped_ptr<DataReductionProxyConfigValues> config_values,
+ std::unique_ptr<DataReductionProxyConfigValues> config_values,
net::NetLog* net_log,
DataReductionProxyConfigurator* configurator,
DataReductionProxyEventCreator* event_creator);

Powered by Google App Engine
This is Rietveld 408576698