| Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc
|
| diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc
|
| index d3b534f1097e07ff7b967b9cd796d25906cddabb..8ca2474eaa8ab52d56767d7547e9b808059b79e3 100644
|
| --- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc
|
| +++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc
|
| @@ -12,10 +12,10 @@
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/test/histogram_tester.h"
|
| #include "base/time/time.h"
|
| +#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h"
|
| #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h"
|
| #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h"
|
| #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h"
|
| -#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.h"
|
| #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h"
|
| #include "components/data_reduction_proxy/core/common/data_reduction_proxy_headers_test_utils.h"
|
| #include "components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.h"
|
| @@ -151,8 +151,8 @@ class DataReductionProxyNetworkDelegateTest : public testing::Test {
|
| return test_context_->config();
|
| }
|
|
|
| - DataReductionProxyStatisticsPrefs* statistics_prefs() const {
|
| - return test_context_->data_reduction_proxy_service()->statistics_prefs();
|
| + DataReductionProxyCompressionStats* compression_stats() const {
|
| + return test_context_->data_reduction_proxy_service()->compression_stats();
|
| }
|
|
|
| scoped_ptr<DataReductionProxyNetworkDelegate>
|
| @@ -425,12 +425,12 @@ TEST_F(DataReductionProxyNetworkDelegateTest, TotalLengths) {
|
| UNKNOWN_TYPE);
|
|
|
| EXPECT_EQ(kReceivedLength,
|
| - statistics_prefs()->GetInt64(
|
| + compression_stats()->GetInt64(
|
| data_reduction_proxy::prefs::kHttpReceivedContentLength));
|
| EXPECT_FALSE(pref_service()->GetBoolean(
|
| data_reduction_proxy::prefs::kDataReductionProxyEnabled));
|
| EXPECT_EQ(kOriginalLength,
|
| - statistics_prefs()->GetInt64(
|
| + compression_stats()->GetInt64(
|
| data_reduction_proxy::prefs::kHttpOriginalContentLength));
|
|
|
| // Record the same numbers again, and total lengths should be doubled.
|
| @@ -441,12 +441,12 @@ TEST_F(DataReductionProxyNetworkDelegateTest, TotalLengths) {
|
| UNKNOWN_TYPE);
|
|
|
| EXPECT_EQ(kReceivedLength * 2,
|
| - statistics_prefs()->GetInt64(
|
| + compression_stats()->GetInt64(
|
| data_reduction_proxy::prefs::kHttpReceivedContentLength));
|
| EXPECT_FALSE(pref_service()->GetBoolean(
|
| data_reduction_proxy::prefs::kDataReductionProxyEnabled));
|
| EXPECT_EQ(kOriginalLength * 2,
|
| - statistics_prefs()->GetInt64(
|
| + compression_stats()->GetInt64(
|
| data_reduction_proxy::prefs::kHttpOriginalContentLength));
|
| }
|
|
|
|
|