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

Unified Diff: extensions/test/test_extensions_client.cc

Issue 575113002: Move Webstore URL concepts to //extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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: extensions/test/test_extensions_client.cc
diff --git a/extensions/test/test_extensions_client.cc b/extensions/test/test_extensions_client.cc
index a47e60eeda44285787cdcfb6c21a1b8267f4ca92..d8b8814272e41af5230933e77051086e11a803cf 100644
--- a/extensions/test/test_extensions_client.cc
+++ b/extensions/test/test_extensions_client.cc
@@ -23,6 +23,10 @@ namespace extensions {
namespace {
+const char kWebstoreBaseURL[] = "https://chrome.google.com/webstore";
+const char kWebstoreUpdateURL[] =
+ "https://clients2.google.com/service/update2/crx";
+
template <class FeatureClass>
SimpleFeature* CreateFeature() {
return new FeatureClass;
@@ -142,4 +146,16 @@ bool TestExtensionsClient::ShouldSuppressFatalErrors() const {
return true;
}
+std::string TestExtensionsClient::GetWebstoreBaseURL() const {
+ return kWebstoreBaseURL;
+}
+
+std::string TestExtensionsClient::GetWebstoreUpdateURL() const {
+ return kWebstoreUpdateURL;
+}
+
+bool TestExtensionsClient::IsBlacklistUpdateURL(const GURL& url) const {
+ return true;
+}
+
} // namespace extensions
« extensions/common/extension_urls.h ('K') | « extensions/test/test_extensions_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698