| 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 15e70d34ae1789df6b5a65df2045fc65819a0718..6d72452e06a798a641243d46ce64e97e796e6a20 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
|
| @@ -15,6 +15,7 @@
|
| #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_store.h"
|
| #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event_creator.h"
|
| #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event_storage_delegate_test_utils.h"
|
| #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event_store.h"
|
| @@ -172,19 +173,21 @@ MockDataReductionProxyService::MockDataReductionProxyService(
|
| DataReductionProxySettings* settings,
|
| PrefService* prefs,
|
| net::URLRequestContextGetter* request_context,
|
| - scoped_refptr<base::SingleThreadTaskRunner> io_task_runner)
|
| + const scoped_refptr<base::SingleThreadTaskRunner>& task_runner)
|
| : DataReductionProxyService(compression_stats.Pass(),
|
| settings,
|
| prefs,
|
| request_context,
|
| - io_task_runner) {
|
| + make_scoped_ptr(new DataStore()).Pass(),
|
| + task_runner,
|
| + task_runner) {
|
| }
|
|
|
| MockDataReductionProxyService::~MockDataReductionProxyService() {
|
| }
|
|
|
| TestDataReductionProxyIOData::TestDataReductionProxyIOData(
|
| - scoped_refptr<base::SingleThreadTaskRunner> task_runner,
|
| + const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
|
| scoped_ptr<DataReductionProxyConfig> config,
|
| scoped_ptr<DataReductionProxyEventCreator> event_creator,
|
| scoped_ptr<DataReductionProxyRequestOptions> request_options,
|
| @@ -443,7 +446,7 @@ DataReductionProxyTestContext::Builder::Build() {
|
| }
|
|
|
| DataReductionProxyTestContext::DataReductionProxyTestContext(
|
| - scoped_refptr<base::SingleThreadTaskRunner> task_runner,
|
| + const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
|
| scoped_ptr<TestingPrefServiceSimple> simple_pref_service,
|
| scoped_ptr<net::TestNetLog> net_log,
|
| scoped_refptr<net::URLRequestContextGetter> request_context_getter,
|
| @@ -513,8 +516,11 @@ DataReductionProxyTestContext::CreateDataReductionProxyServiceInternal() {
|
| request_context_getter_.get(), task_runner_));
|
| } else {
|
| return make_scoped_ptr(new DataReductionProxyService(
|
| - compression_stats.Pass(), settings_.get(), simple_pref_service_.get(),
|
| - request_context_getter_.get(), task_runner_));
|
| + compression_stats.Pass(), settings_.get(),
|
| + simple_pref_service_.get(),
|
| + request_context_getter_.get(),
|
| + make_scoped_ptr(new DataStore()).Pass(),
|
| + task_runner_, task_runner_)).Pass();
|
| }
|
| }
|
|
|
|
|