summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_updater_unittest.cc
diff options
context:
space:
mode:
authorasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-30 00:28:55 +0000
committerasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-30 00:28:55 +0000
commit4d2913e3a919b1475bea30be6bac76d1581cbfd5 (patch)
tree770347643e956b794cf661e94e129834a71ba360 /chrome/browser/extensions/extension_updater_unittest.cc
parent8977399aeb3fa195007e608b9f8cb708025c8750 (diff)
downloadchromium_src-4d2913e3a919b1475bea30be6bac76d1581cbfd5.zip
chromium_src-4d2913e3a919b1475bea30be6bac76d1581cbfd5.tar.gz
chromium_src-4d2913e3a919b1475bea30be6bac76d1581cbfd5.tar.bz2
Add command line flag to override gallery update urls
This will be helpful for testing installs via the web store pointing at a test server, and potentially for testing autoupdate as well. Also remove the kGalleryBrowsePrefix constant while I was in the neighborhood, since it turns out it's not used anywhere in our code anymore. BUG=63511 TEST=Run chrome with --app-gallery-update-url=<SOMEURL>. Go to the web store and try installing an app - the request to download the .crx file should go <SOMEURL> with some extra parameters tacked on including the extension id, etc. instead of http://clients2.google.com/service/update2/crx. Review URL: http://codereview.chromium.org/5119003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67625 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_updater_unittest.cc')
-rw-r--r--chrome/browser/extensions/extension_updater_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/extensions/extension_updater_unittest.cc b/chrome/browser/extensions/extension_updater_unittest.cc
index bc1a6ff..b85d5d8 100644
--- a/chrome/browser/extensions/extension_updater_unittest.cc
+++ b/chrome/browser/extensions/extension_updater_unittest.cc
@@ -450,7 +450,7 @@ class ExtensionUpdaterTest : public testing::Test {
fetch_data.full_url().spec());
}
- static void TestUpdateUrlDataFromGallery(const char* gallery_url) {
+ static void TestUpdateUrlDataFromGallery(const std::string& gallery_url) {
MockService service;
ManifestFetchesBuilder builder(&service);
ExtensionList extensions;
@@ -924,9 +924,9 @@ TEST(ExtensionUpdaterTest, TestUpdateUrlData) {
ExtensionUpdaterTest::TestUpdateUrlDataSimple();
ExtensionUpdaterTest::TestUpdateUrlDataCompound();
ExtensionUpdaterTest::TestUpdateUrlDataFromGallery(
- extension_urls::kGalleryUpdateHttpUrl);
+ Extension::GalleryUpdateUrl(false).spec());
ExtensionUpdaterTest::TestUpdateUrlDataFromGallery(
- extension_urls::kGalleryUpdateHttpsUrl);
+ Extension::GalleryUpdateUrl(true).spec());
}
TEST(ExtensionUpdaterTest, TestDetermineUpdates) {