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

Side by Side Diff: components/update_client/test_configurator.cc

Issue 2340113002: Inject the prodid for the extensions and component updaters. (Closed)
Patch Set: Fixed comment to include "chromiumcrx". Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/update_client/test_configurator.h" 5 #include "components/update_client/test_configurator.h"
6 6
7 #include "base/version.h" 7 #include "base/version.h"
8 #include "components/prefs/pref_service.h" 8 #include "components/prefs/pref_service.h"
9 #include "components/update_client/component_patcher_operation.h" 9 #include "components/update_client/component_patcher_operation.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 return MakeDefaultUrls(); 63 return MakeDefaultUrls();
64 } 64 }
65 65
66 std::vector<GURL> TestConfigurator::PingUrl() const { 66 std::vector<GURL> TestConfigurator::PingUrl() const {
67 if (!ping_url_.is_empty()) 67 if (!ping_url_.is_empty())
68 return std::vector<GURL>(1, ping_url_); 68 return std::vector<GURL>(1, ping_url_);
69 69
70 return UpdateUrl(); 70 return UpdateUrl();
71 } 71 }
72 72
73 std::string TestConfigurator::GetProdId() const {
74 return "fake_prodid";
75 }
76
73 base::Version TestConfigurator::GetBrowserVersion() const { 77 base::Version TestConfigurator::GetBrowserVersion() const {
74 // Needs to be larger than the required version in tested component manifests. 78 // Needs to be larger than the required version in tested component manifests.
75 return base::Version("30.0"); 79 return base::Version("30.0");
76 } 80 }
77 81
78 std::string TestConfigurator::GetChannel() const { 82 std::string TestConfigurator::GetChannel() const {
79 return "fake_channel_string"; 83 return "fake_channel_string";
80 } 84 }
81 85
82 std::string TestConfigurator::GetBrand() const { 86 std::string TestConfigurator::GetBrand() const {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 TestConfigurator::GetSequencedTaskRunner() const { 166 TestConfigurator::GetSequencedTaskRunner() const {
163 DCHECK(worker_task_runner_.get()); 167 DCHECK(worker_task_runner_.get());
164 return worker_task_runner_; 168 return worker_task_runner_;
165 } 169 }
166 170
167 PrefService* TestConfigurator::GetPrefService() const { 171 PrefService* TestConfigurator::GetPrefService() const {
168 return nullptr; 172 return nullptr;
169 } 173 }
170 174
171 } // namespace update_client 175 } // namespace update_client
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698