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

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

Issue 2199423002: Mechanical change in the component updater Configurator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 net::URLRequestContextGetter* TestConfigurator::RequestContext() const { 101 net::URLRequestContextGetter* TestConfigurator::RequestContext() const {
102 return context_.get(); 102 return context_.get();
103 } 103 }
104 104
105 scoped_refptr<OutOfProcessPatcher> TestConfigurator::CreateOutOfProcessPatcher() 105 scoped_refptr<OutOfProcessPatcher> TestConfigurator::CreateOutOfProcessPatcher()
106 const { 106 const {
107 return NULL; 107 return NULL;
108 } 108 }
109 109
110 bool TestConfigurator::DeltasEnabled() const { 110 bool TestConfigurator::EnabledDeltas() const {
111 return true; 111 return true;
112 } 112 }
113 113
114 bool TestConfigurator::UseBackgroundDownloader() const { 114 bool TestConfigurator::EnabledComponentUpdates() const {
115 return true;
116 }
117
118 bool TestConfigurator::EnabledBackgroundDownloader() const {
115 return false; 119 return false;
116 } 120 }
117 121
118 bool TestConfigurator::UseCupSigning() const { 122 bool TestConfigurator::EnabledCupSigning() const {
119 return use_cup_signing_; 123 return use_cup_signing_;
120 } 124 }
121 125
122 void TestConfigurator::SetBrand(const std::string& brand) { 126 void TestConfigurator::SetBrand(const std::string& brand) {
123 brand_ = brand; 127 brand_ = brand;
124 } 128 }
125 129
126 void TestConfigurator::SetOnDemandTime(int seconds) { 130 void TestConfigurator::SetOnDemandTime(int seconds) {
127 ondemand_time_ = seconds; 131 ondemand_time_ = seconds;
128 } 132 }
129 133
130 void TestConfigurator::SetInitialDelay(int seconds) { 134 void TestConfigurator::SetInitialDelay(int seconds) {
131 initial_time_ = seconds; 135 initial_time_ = seconds;
132 } 136 }
133 137
134 void TestConfigurator::SetUseCupSigning(bool use_cup_signing) { 138 void TestConfigurator::SetEnabledCupSigning(bool use_cup_signing) {
135 use_cup_signing_ = use_cup_signing; 139 use_cup_signing_ = use_cup_signing;
136 } 140 }
137 141
138 void TestConfigurator::SetDownloadPreference( 142 void TestConfigurator::SetDownloadPreference(
139 const std::string& download_preference) { 143 const std::string& download_preference) {
140 download_preference_ = download_preference; 144 download_preference_ = download_preference;
141 } 145 }
142 146
143 void TestConfigurator::SetUpdateCheckUrl(const GURL& url) { 147 void TestConfigurator::SetUpdateCheckUrl(const GURL& url) {
144 update_check_url_ = url; 148 update_check_url_ = url;
145 } 149 }
146 150
147 void TestConfigurator::SetPingUrl(const GURL& url) { 151 void TestConfigurator::SetPingUrl(const GURL& url) {
148 ping_url_ = url; 152 ping_url_ = url;
149 } 153 }
150 154
151 scoped_refptr<base::SequencedTaskRunner> 155 scoped_refptr<base::SequencedTaskRunner>
152 TestConfigurator::GetSequencedTaskRunner() const { 156 TestConfigurator::GetSequencedTaskRunner() const {
153 DCHECK(worker_task_runner_.get()); 157 DCHECK(worker_task_runner_.get());
154 return worker_task_runner_; 158 return worker_task_runner_;
155 } 159 }
156 160
157 PrefService* TestConfigurator::GetPrefService() const { 161 PrefService* TestConfigurator::GetPrefService() const {
158 return nullptr; 162 return nullptr;
159 } 163 }
160 164
161 } // namespace update_client 165 } // namespace update_client
OLDNEW
« no previous file with comments | « components/update_client/test_configurator.h ('k') | components/update_client/update_checker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698