| Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats_unittest.cc
|
| diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats_unittest.cc
|
| similarity index 93%
|
| rename from components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs_unittest.cc
|
| rename to components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats_unittest.cc
|
| index 369c2ab6c8567e4de44d9253495e061ca3726150..7f63262c3340aaaa330663eb85b6fa977c204f6c 100644
|
| --- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs_unittest.cc
|
| +++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats_unittest.cc
|
| @@ -8,8 +8,8 @@
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/test/test_simple_task_runner.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_prefs.h"
|
| -#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.h"
|
| #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| @@ -33,9 +33,9 @@ int64 GetListPrefInt64Value(
|
|
|
| namespace data_reduction_proxy {
|
|
|
| -class DataReductionProxyStatisticsPrefsTest : public testing::Test {
|
| +class DataReductionProxyCompressionStatsTest : public testing::Test {
|
| protected:
|
| - DataReductionProxyStatisticsPrefsTest()
|
| + DataReductionProxyCompressionStatsTest()
|
| : task_runner_(scoped_refptr<base::TestSimpleTaskRunner>(
|
| new base::TestSimpleTaskRunner())) {}
|
|
|
| @@ -74,11 +74,11 @@ class DataReductionProxyStatisticsPrefsTest : public testing::Test {
|
|
|
| scoped_refptr<base::TestSimpleTaskRunner> task_runner_;
|
| TestingPrefServiceSimple simple_pref_service_;
|
| - scoped_ptr<DataReductionProxyStatisticsPrefs> statistics_prefs_;
|
| + scoped_ptr<DataReductionProxyCompressionStats> statistics_prefs_;
|
| };
|
|
|
| -TEST_F(DataReductionProxyStatisticsPrefsTest, WritePrefsDirect) {
|
| - statistics_prefs_.reset(new DataReductionProxyStatisticsPrefs(
|
| +TEST_F(DataReductionProxyCompressionStatsTest, WritePrefsDirect) {
|
| + statistics_prefs_.reset(new DataReductionProxyCompressionStats(
|
| &simple_pref_service_,
|
| task_runner_,
|
| base::TimeDelta()));
|
| @@ -121,8 +121,8 @@ TEST_F(DataReductionProxyStatisticsPrefsTest, WritePrefsDirect) {
|
| data_reduction_proxy::prefs::kDailyHttpReceivedContentLength);
|
| }
|
|
|
| -TEST_F(DataReductionProxyStatisticsPrefsTest, WritePrefsDelayed) {
|
| - statistics_prefs_.reset(new DataReductionProxyStatisticsPrefs(
|
| +TEST_F(DataReductionProxyCompressionStatsTest, WritePrefsDelayed) {
|
| + statistics_prefs_.reset(new DataReductionProxyCompressionStats(
|
| &simple_pref_service_,
|
| task_runner_,
|
| base::TimeDelta::FromMinutes(kWriteDelayMinutes)));
|
| @@ -168,9 +168,9 @@ TEST_F(DataReductionProxyStatisticsPrefsTest, WritePrefsDelayed) {
|
| data_reduction_proxy::prefs::kDailyHttpReceivedContentLength);
|
| }
|
|
|
| -TEST_F(DataReductionProxyStatisticsPrefsTest,
|
| +TEST_F(DataReductionProxyCompressionStatsTest,
|
| WritePrefsOnUpdateDailyReceivedContentLengths) {
|
| - statistics_prefs_.reset(new DataReductionProxyStatisticsPrefs(
|
| + statistics_prefs_.reset(new DataReductionProxyCompressionStats(
|
| &simple_pref_service_,
|
| task_runner_,
|
| base::TimeDelta::FromMinutes(kWriteDelayMinutes)));
|
|
|