| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/update_client/test_configurator.h" | 5 #include "components/update_client/test_configurator.h" |
| 6 | 6 |
| 7 #include "base/version.h" | 7 #include "base/version.h" |
| 8 #include "components/prefs/pref_service.h" | 8 #include "components/prefs/pref_service.h" |
| 9 #include "components/update_client/component_patcher_operation.h" | 9 #include "components/update_client/component_patcher_operation.h" |
| 10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 } // namespace | 23 } // namespace |
| 24 | 24 |
| 25 TestConfigurator::TestConfigurator( | 25 TestConfigurator::TestConfigurator( |
| 26 const scoped_refptr<base::SequencedTaskRunner>& worker_task_runner, | 26 const scoped_refptr<base::SequencedTaskRunner>& worker_task_runner, |
| 27 const scoped_refptr<base::SingleThreadTaskRunner>& network_task_runner) | 27 const scoped_refptr<base::SingleThreadTaskRunner>& network_task_runner) |
| 28 : worker_task_runner_(worker_task_runner), | 28 : worker_task_runner_(worker_task_runner), |
| 29 brand_("TEST"), | 29 brand_("TEST"), |
| 30 initial_time_(0), | 30 initial_time_(0), |
| 31 ondemand_time_(0), | 31 ondemand_time_(0), |
| 32 enabled_cup_signing_(false), | 32 enabled_cup_signing_(false), |
| 33 enabled_component_updates_(false), | 33 enabled_component_updates_(true), |
| 34 context_(new net::TestURLRequestContextGetter(network_task_runner)) {} | 34 context_(new net::TestURLRequestContextGetter(network_task_runner)) {} |
| 35 | 35 |
| 36 TestConfigurator::~TestConfigurator() { | 36 TestConfigurator::~TestConfigurator() { |
| 37 } | 37 } |
| 38 | 38 |
| 39 int TestConfigurator::InitialDelay() const { | 39 int TestConfigurator::InitialDelay() const { |
| 40 return initial_time_; | 40 return initial_time_; |
| 41 } | 41 } |
| 42 | 42 |
| 43 int TestConfigurator::NextCheckDelay() const { | 43 int TestConfigurator::NextCheckDelay() const { |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 TestConfigurator::GetSequencedTaskRunner() const { | 162 TestConfigurator::GetSequencedTaskRunner() const { |
| 163 DCHECK(worker_task_runner_.get()); | 163 DCHECK(worker_task_runner_.get()); |
| 164 return worker_task_runner_; | 164 return worker_task_runner_; |
| 165 } | 165 } |
| 166 | 166 |
| 167 PrefService* TestConfigurator::GetPrefService() const { | 167 PrefService* TestConfigurator::GetPrefService() const { |
| 168 return nullptr; | 168 return nullptr; |
| 169 } | 169 } |
| 170 | 170 |
| 171 } // namespace update_client | 171 } // namespace update_client |
| OLD | NEW |