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

Unified Diff: chrome/browser/component_updater/test/test_configurator.cc

Issue 375973003: Componentize component_updater: Use Configurator to build query parameters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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: chrome/browser/component_updater/test/test_configurator.cc
diff --git a/chrome/browser/component_updater/test/test_configurator.cc b/chrome/browser/component_updater/test/test_configurator.cc
index 8cf49d26f183fe41d9ff02763f088c3f92af784a..1bc3add41fd196f50656b082a886e9c5eaa6dfea 100644
--- a/chrome/browser/component_updater/test/test_configurator.cc
+++ b/chrome/browser/component_updater/test/test_configurator.cc
@@ -5,6 +5,7 @@
#include <string>
#include "base/run_loop.h"
+#include "base/version.h"
#include "chrome/browser/component_updater/test/test_configurator.h"
#include "content/public/browser/browser_thread.h"
#include "url/gurl.h"
@@ -66,6 +67,23 @@ GURL TestConfigurator::PingUrl() const {
return UpdateUrl();
}
+base::Version TestConfigurator::GetBrowserVersion() const {
+ // Needs to be larger than the required version in tested component manifests.
+ return base::Version("30.0");
+}
+
+std::string TestConfigurator::GetChannel() const {
+ return "fake_channel_string";
+}
+
+std::string TestConfigurator::GetLang() const {
+ return "fake_lang";
+}
+
+std::string TestConfigurator::GetOSLongName() const {
+ return "Fake Operating System";
+}
+
std::string TestConfigurator::ExtraRequestParams() const {
return "extra=\"foo\"";
}
« no previous file with comments | « chrome/browser/component_updater/test/test_configurator.h ('k') | chrome/browser/component_updater/update_checker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698