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

Unified Diff: components/component_updater/test/test_configurator.cc

Issue 565363002: Implement support for fallback update check urls in the component updater (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 6 years, 3 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
Index: components/component_updater/test/test_configurator.cc
diff --git a/components/component_updater/test/test_configurator.cc b/components/component_updater/test/test_configurator.cc
index d611f9ed0cc8731305a3ee1a190f9bd64b2c2bf1..afc96a062404918ff80e461c6c062f65ec2f90bb 100644
--- a/components/component_updater/test/test_configurator.cc
+++ b/components/component_updater/test/test_configurator.cc
@@ -12,6 +12,16 @@
namespace component_updater {
+namespace {
+
+std::vector<GURL> MakeDefaultUrls() {
+ std::vector<GURL> urls;
+ urls.push_back(GURL(POST_INTERCEPT_SCHEME
+ "://" POST_INTERCEPT_HOSTNAME POST_INTERCEPT_PATH));
+ return urls;
+}
+
+} // namespace
TestConfigurator::TestConfigurator(
const scoped_refptr<base::SequencedTaskRunner>& worker_task_runner,
const scoped_refptr<base::SingleThreadTaskRunner>& network_task_runner)
@@ -58,12 +68,11 @@ int TestConfigurator::OnDemandDelay() const {
return ondemand_time_;
}
-GURL TestConfigurator::UpdateUrl() const {
- return GURL(POST_INTERCEPT_SCHEME
- "://" POST_INTERCEPT_HOSTNAME POST_INTERCEPT_PATH);
+std::vector<GURL> TestConfigurator::UpdateUrl() const {
+ return MakeDefaultUrls();
}
-GURL TestConfigurator::PingUrl() const {
+std::vector<GURL> TestConfigurator::PingUrl() const {
return UpdateUrl();
}

Powered by Google App Engine
This is Rietveld 408576698