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

Unified Diff: components/update_client/test_configurator.cc

Issue 1685323002: Implement CUP signing in UpdateClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and remove duplicated code comment. Created 4 years, 10 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.h » ('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 1e4e76ea7def9e06e8e6e9ec71c479b931e40eed..f082bb82351579605e4bcfa753dba76a7495d9bd 100644
--- a/components/update_client/test_configurator.cc
+++ b/components/update_client/test_configurator.cc
@@ -27,8 +27,8 @@ TestConfigurator::TestConfigurator(
: worker_task_runner_(worker_task_runner),
initial_time_(0),
ondemand_time_(0),
- context_(new net::TestURLRequestContextGetter(network_task_runner)) {
-}
+ use_cup_signing_(false),
+ context_(new net::TestURLRequestContextGetter(network_task_runner)) {}
TestConfigurator::~TestConfigurator() {
}
@@ -103,6 +103,10 @@ bool TestConfigurator::UseBackgroundDownloader() const {
return false;
}
+bool TestConfigurator::UseCupSigning() const {
+ return use_cup_signing_;
+}
+
void TestConfigurator::SetOnDemandTime(int seconds) {
ondemand_time_ = seconds;
}
@@ -111,6 +115,10 @@ void TestConfigurator::SetInitialDelay(int seconds) {
initial_time_ = seconds;
}
+void TestConfigurator::SetUseCupSigning(bool use_cup_signing) {
+ use_cup_signing_ = use_cup_signing;
+}
+
void TestConfigurator::SetDownloadPreference(
const std::string& download_preference) {
download_preference_ = download_preference;
« no previous file with comments | « components/update_client/test_configurator.h ('k') | components/update_client/update_checker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698