| 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 641f625974aba96811bc24520ff13e61fd2b7c3c..0d6e7baee5b37e3185bd45e2b796f9fc4f469454 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,14 @@ 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()));
|
| + io_data->SetDataReductionProxyStatisticsPrefs(
|
| + settings()->statistics_prefs()->GetWeakPtr());
|
|
|
| // Check that io_data creates an interceptor. Such an interceptor is
|
| // thoroughly tested by DataReductionProxyInterceptoTest.
|
| @@ -122,7 +126,10 @@ TEST_F(DataReductionProxyIODataTest, TestConstruction) {
|
|
|
| // Check if explicitly enabling compression statistics logging results in
|
| // a new logging object being created.
|
| - io_data->EnableCompressionStatisticsLogging(prefs(), base::TimeDelta());
|
| + settings()->EnableCompressionStatisticsLogging(
|
| + prefs(), message_loop_proxy(), base::TimeDelta());
|
| + io_data->SetDataReductionProxyStatisticsPrefs(
|
| + settings()->statistics_prefs()->GetWeakPtr());
|
| EXPECT_NE(statistics_prefs, io_data->statistics_prefs());
|
| EXPECT_TRUE(io_data->statistics_prefs());
|
|
|
|
|