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(); |
} |