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

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..a1b88b3f4e7863ee4cde98201cb67e8b7748ac66 100644
--- a/components/component_updater/test/test_configurator.cc
+++ b/components/component_updater/test/test_configurator.cc
@@ -2,16 +2,26 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <string>
+#include "components/component_updater/test/test_configurator.h"
#include "base/run_loop.h"
#include "base/version.h"
#include "components/component_updater/component_patcher_operation.h"
-#include "components/component_updater/test/test_configurator.h"
#include "url/gurl.h"
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();
}
« no previous file with comments | « components/component_updater/test/test_configurator.h ('k') | components/component_updater/test/update_checker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698