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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc

Issue 888713002: DataReductionProxyStatisticsPrefs should support WeakPtr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DRPSettings owns DRPStatisticsPrefs Created 5 years, 11 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_io_data_unittest.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc
index 8aa47d8a57fe16949648f0df278d5d4f7a298916..e9c81fa54d4d28b68b5f35dded296410f5c1fa92 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc
@@ -105,10 +105,12 @@ TEST_F(DataReductionProxyIODataTest, TestConstruction) {
DataReductionProxyStatisticsPrefs* statistics_prefs =
new DataReductionProxyStatisticsPrefs(
prefs(), message_loop_proxy(), base::TimeDelta());
+ settings()->SetDataReductionProxyStatisticsPrefs(
+ make_scoped_ptr(statistics_prefs));
scoped_ptr<DataReductionProxyIOData> io_data(
new DataReductionProxyIOData(
- Client::UNKNOWN, make_scoped_ptr(statistics_prefs), settings(),
- net_log(), message_loop_proxy(), message_loop_proxy()));
+ Client::UNKNOWN, settings(), net_log(),
+ message_loop_proxy(), message_loop_proxy()));
// Check that io_data creates an interceptor. Such an interceptor is
// thoroughly tested by DataReductionProxyInterceptoTest.

Powered by Google App Engine
This is Rietveld 408576698