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

Side by Side Diff: components/update_client/test_configurator.cc

Issue 2237153002: Use consistent values for enabled_component_updates throughout an update. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix UT. Created 4 years, 4 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « components/update_client/action_update_check.cc ('k') | components/update_client/update_checker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698