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

Unified Diff: components/update_client/test_configurator.cc

Issue 2206583007: Handle the case when the updates are disabled for a component. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/update_client/test_configurator.h ('k') | components/update_client/update_checker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/test_configurator.cc
diff --git a/components/update_client/test_configurator.cc b/components/update_client/test_configurator.cc
index 5e465084ddad222001dd9c9bd5bb928c8e289b5b..0ccccd051b7266a095f88d3f841c645b64c1ec24 100644
--- a/components/update_client/test_configurator.cc
+++ b/components/update_client/test_configurator.cc
@@ -29,7 +29,8 @@ TestConfigurator::TestConfigurator(
brand_("TEST"),
initial_time_(0),
ondemand_time_(0),
- use_cup_signing_(false),
+ enabled_cup_signing_(false),
+ enabled_component_updates_(false),
context_(new net::TestURLRequestContextGetter(network_task_runner)) {}
TestConfigurator::~TestConfigurator() {
@@ -112,7 +113,7 @@ bool TestConfigurator::EnabledDeltas() const {
}
bool TestConfigurator::EnabledComponentUpdates() const {
- return true;
+ return enabled_component_updates_;
}
bool TestConfigurator::EnabledBackgroundDownloader() const {
@@ -120,7 +121,7 @@ bool TestConfigurator::EnabledBackgroundDownloader() const {
}
bool TestConfigurator::EnabledCupSigning() const {
- return use_cup_signing_;
+ return enabled_cup_signing_;
}
void TestConfigurator::SetBrand(const std::string& brand) {
@@ -135,8 +136,13 @@ void TestConfigurator::SetInitialDelay(int seconds) {
initial_time_ = seconds;
}
-void TestConfigurator::SetEnabledCupSigning(bool use_cup_signing) {
- use_cup_signing_ = use_cup_signing;
+void TestConfigurator::SetEnabledCupSigning(bool enabled_cup_signing) {
+ enabled_cup_signing_ = enabled_cup_signing;
+}
+
+void TestConfigurator::SetEnabledComponentUpdates(
+ bool enabled_component_updates) {
+ enabled_component_updates_ = enabled_component_updates;
}
void TestConfigurator::SetDownloadPreference(
« 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