| Index: components/update_client/test_configurator.cc
|
| diff --git a/components/update_client/test_configurator.cc b/components/update_client/test_configurator.cc
|
| index b2bf95ddccb1ed233d802af4be81e215b5da866d..6ef0603fb42aae3ab743a083bcfeae7b495a903f 100644
|
| --- a/components/update_client/test_configurator.cc
|
| +++ b/components/update_client/test_configurator.cc
|
| @@ -8,7 +8,8 @@
|
| #include "base/single_thread_task_runner.h"
|
| #include "base/version.h"
|
| #include "components/prefs/pref_service.h"
|
| -#include "components/update_client/out_of_process_patcher.h"
|
| +#include "components/update_client/component_patcher_operation.h"
|
| +#include "components/update_client/persisted_data.h"
|
| #include "net/url_request/url_request_test_util.h"
|
| #include "url/gurl.h"
|
|
|
| @@ -34,6 +35,7 @@ TestConfigurator::TestConfigurator(
|
| ondemand_time_(0),
|
| enabled_cup_signing_(false),
|
| enabled_component_updates_(true),
|
| + pref_service_(nullptr),
|
| context_(new net::TestURLRequestContextGetter(network_task_runner)) {}
|
|
|
| TestConfigurator::~TestConfigurator() {
|
| @@ -161,18 +163,22 @@ void TestConfigurator::SetPingUrl(const GURL& url) {
|
| ping_url_ = url;
|
| }
|
|
|
| +void TestConfigurator::SetPrefService(PrefService* pref_service) {
|
| + pref_service_ = pref_service;
|
| +}
|
| +
|
| scoped_refptr<base::SequencedTaskRunner>
|
| TestConfigurator::GetSequencedTaskRunner() const {
|
| DCHECK(worker_task_runner_.get());
|
| return worker_task_runner_;
|
| }
|
|
|
| -PrefService* TestConfigurator::GetPrefService() const {
|
| - return nullptr;
|
| -}
|
| -
|
| bool TestConfigurator::IsPerUserInstall() const {
|
| return true;
|
| }
|
|
|
| +std::unique_ptr<PersistedData> TestConfigurator::CreateMetadata() const {
|
| + return base::MakeUnique<PersistedData>(pref_service_);
|
| +}
|
| +
|
| } // namespace update_client
|
|
|