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

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

Issue 949533004: Rename DataReductionProxyStatisticsPrefs to DataReductionProxyCompressionStats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 9 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_test_utils.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc
index 422cd424f34a846ebee419190125aef311fe5054..6b3a651d76b79b9e6084870ebc3a7febc5834abd 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc
@@ -6,13 +6,13 @@
#include "base/message_loop/message_loop.h"
#include "base/prefs/testing_pref_service.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_configurator_test_utils.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h"
-#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.h"
@@ -25,11 +25,12 @@
namespace data_reduction_proxy {
MockDataReductionProxyService::MockDataReductionProxyService(
- scoped_ptr<DataReductionProxyStatisticsPrefs> statistics_prefs,
+ scoped_ptr<DataReductionProxyCompressionStats> compression_stats,
DataReductionProxySettings* settings,
net::URLRequestContextGetter* request_context)
- : DataReductionProxyService(
- statistics_prefs.Pass(), settings, request_context) {
+ : DataReductionProxyService(compression_stats.Pass(),
+ settings,
+ request_context) {
}
MockDataReductionProxyService::~MockDataReductionProxyService() {
@@ -255,17 +256,17 @@ DataReductionProxyTestContext::CreateDataReductionProxyService() {
scoped_ptr<DataReductionProxyService>
DataReductionProxyTestContext::CreateDataReductionProxyServiceInternal() {
- scoped_ptr<DataReductionProxyStatisticsPrefs> statistics_prefs =
- make_scoped_ptr(new DataReductionProxyStatisticsPrefs(
+ scoped_ptr<DataReductionProxyCompressionStats> compression_stats =
+ make_scoped_ptr(new DataReductionProxyCompressionStats(
simple_pref_service_.get(), task_runner_, base::TimeDelta()));
if (test_context_flags_ & DataReductionProxyTestContext::USE_MOCK_SERVICE) {
return make_scoped_ptr(new MockDataReductionProxyService(
- statistics_prefs.Pass(), settings_.get(),
+ compression_stats.Pass(), settings_.get(),
request_context_getter_.get()));
} else {
return make_scoped_ptr(
- new DataReductionProxyService(statistics_prefs.Pass(), settings_.get(),
+ new DataReductionProxyService(compression_stats.Pass(), settings_.get(),
request_context_getter_.get()));
}
}

Powered by Google App Engine
This is Rietveld 408576698