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

Unified Diff: components/update_client/test_configurator.cc

Issue 1823273002: Send the value of google_brand::GetBrand in component update checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor unit test improvement. Created 4 years, 9 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 f082bb82351579605e4bcfa753dba76a7495d9bd..93279c4e140fb3da679785b8255cc04fcfe2cf31 100644
--- a/components/update_client/test_configurator.cc
+++ b/components/update_client/test_configurator.cc
@@ -25,6 +25,7 @@ TestConfigurator::TestConfigurator(
const scoped_refptr<base::SequencedTaskRunner>& worker_task_runner,
const scoped_refptr<base::SingleThreadTaskRunner>& network_task_runner)
: worker_task_runner_(worker_task_runner),
+ brand_("TEST"),
initial_time_(0),
ondemand_time_(0),
use_cup_signing_(false),
@@ -70,6 +71,10 @@ std::string TestConfigurator::GetChannel() const {
return "fake_channel_string";
}
+std::string TestConfigurator::GetBrand() const {
+ return brand_;
+}
+
std::string TestConfigurator::GetLang() const {
return "fake_lang";
}
@@ -107,6 +112,10 @@ bool TestConfigurator::UseCupSigning() const {
return use_cup_signing_;
}
+void TestConfigurator::SetBrand(const std::string& brand) {
+ brand_ = brand;
+}
+
void TestConfigurator::SetOnDemandTime(int seconds) {
ondemand_time_ = seconds;
}
« 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