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

Unified Diff: chrome/test/webdriver/test/continuous_archive.py

Issue 23526047: Delete old chromedriver code, and remove mongoose webserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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
« no previous file with comments | « chrome/test/webdriver/test/content_editable.html ('k') | chrome/test/webdriver/test/design_mode_doc.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/test/continuous_archive.py
diff --git a/chrome/test/webdriver/test/continuous_archive.py b/chrome/test/webdriver/test/continuous_archive.py
deleted file mode 100644
index b5642e182e574c50793be6be83f29963ccd2579a..0000000000000000000000000000000000000000
--- a/chrome/test/webdriver/test/continuous_archive.py
+++ /dev/null
@@ -1,93 +0,0 @@
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Downloads items from the Chromium continuous archive."""
-
-import os
-import stat
-import urllib
-
-import util
-
-
-_SITE = 'http://commondatastorage.googleapis.com/chromium-browser-continuous'
-
-
-def GetLatestRevision():
- """Returns the latest revision (as a string) available for this platform."""
- url = _SITE + '/%s/LAST_CHANGE'
- return urllib.urlopen(url % _GetDownloadPlatform()).read()
-
-
-def DownloadChromeDriver(revision, dest_dir):
- """Downloads ChromeDriver from the archive to the given directory.
-
- Args:
- revision: the revision of ChromeDriver to download.
- dest_dir: the directory to download ChromeDriver to.
-
- Returns:
- The path to the downloaded ChromeDriver binary.
- """
- def GetChromedriverPath():
- if util.IsWin():
- return 'chrome-win32.test/chromedriver.exe'
- elif util.IsMac():
- return 'chrome-mac.test/chromedriver'
- elif util.IsLinux():
- return 'chrome-linux.test/chromedriver'
- url = _SITE + '/%s/%s/%s' % (_GetDownloadPlatform(), revision,
- GetChromedriverPath())
- print 'Downloading', url, '...'
- path = os.path.join(dest_dir, 'chromedriver')
- if util.IsWin():
- path = path + '.exe'
- urllib.urlretrieve(url, path)
- # Make executable by owner.
- os.chmod(path, stat.S_IEXEC)
- return path
-
-
-def DownloadChrome(revision, dest_dir):
- """Downloads the packaged Chrome from the archive to the given directory.
-
- Args:
- revision: the revision of Chrome to download.
- dest_dir: the directory to download Chrome to.
-
- Returns:
- The path to the unzipped Chrome binary.
- """
- def GetZipName():
- if util.IsWin():
- return 'chrome-win32'
- elif util.IsMac():
- return 'chrome-mac'
- elif util.IsLinux():
- return 'chrome-linux'
- def GetChromePathFromPackage():
- if util.IsWin():
- return 'chrome.exe'
- elif util.IsMac():
- return 'Chromium.app/Contents/MacOS/Chromium'
- elif util.IsLinux():
- return 'chrome'
- zip_path = os.path.join(dest_dir, 'chrome-%s.zip' % revision)
- if not os.path.exists(zip_path):
- url = _SITE + '/%s/%s/%s.zip' % (_GetDownloadPlatform(), revision,
- GetZipName())
- print 'Downloading', url, '...'
- urllib.urlretrieve(url, zip_path)
- util.Unzip(zip_path, dest_dir)
- return os.path.join(dest_dir, GetZipName(), GetChromePathFromPackage())
-
-
-def _GetDownloadPlatform():
- """Returns the name for this platform on the archive site."""
- if util.IsWin():
- return 'Win'
- elif util.IsMac():
- return 'Mac'
- elif util.IsLinux():
- return 'Linux_x64'
« no previous file with comments | « chrome/test/webdriver/test/content_editable.html ('k') | chrome/test/webdriver/test/design_mode_doc.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698