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

Unified Diff: chrome/test/functional/ispy/common/cloud_bucket.py

Issue 222873002: Remove pyauto tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 years, 9 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/functional/ispy/client/wait_on_ajax.js ('k') | chrome/test/functional/ispy/common/constants.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/ispy/common/cloud_bucket.py
===================================================================
--- chrome/test/functional/ispy/common/cloud_bucket.py (revision 261231)
+++ chrome/test/functional/ispy/common/cloud_bucket.py (working copy)
@@ -1,91 +0,0 @@
-# Copyright 2013 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.
-
-"""Abstract injector class for GS requests."""
-
-
-class FileNotFoundError(Exception):
- """Thrown by a subclass of CloudBucket when a file is not found."""
- pass
-
-
-class BaseCloudBucket(object):
- """An abstract base class for working with GS."""
-
- def UploadFile(self, path, contents, content_type):
- """Uploads a file to GS.
-
- Args:
- path: where in GS to upload the file.
- contents: the contents of the file to be uploaded.
- content_type: the MIME Content-Type of the file.
- """
- raise NotImplementedError
-
- def DownloadFile(self, path):
- """Downsloads a file from GS.
-
- Args:
- path: the location in GS to download the file from.
-
- Returns:
- String contents of the file downloaded.
-
- Raises:
- bucket_injector.NotFoundException: if the file is not found.
- """
- raise NotImplementedError
-
- def UpdateFile(self, path, contents):
- """Uploads a file to GS.
-
- Args:
- path: location of the file in GS to update.
- contents: the contents of the file to be updated.
- """
- raise NotImplementedError
-
- def RemoveFile(self, path):
- """Removes a file from GS.
-
- Args:
- path: the location in GS to download the file from.
- """
- raise NotImplementedError
-
- def FileExists(self, path):
- """Checks if a file exists in GS.
-
- Args:
- path: the location in GS of the file.
-
- Returns:
- boolean representing whether the file exists in GS.
- """
- raise NotImplementedError
-
- def GetImageURL(self, path):
- """Gets a URL to an item in GS from its path.
-
- Args:
- path: the location in GS of a file.
-
- Returns:
- an url to a file in GS.
-
- Raises:
- bucket_injector.NotFoundException: if the file is not found.
- """
- raise NotImplementedError
-
- def GetAllPaths(self, prefix):
- """Gets paths to files in GS that start with a prefix.
-
- Args:
- prefix: the prefix to filter files in GS.
-
- Returns:
- a generator of paths to files in GS.
- """
- raise NotImplementedError
« no previous file with comments | « chrome/test/functional/ispy/client/wait_on_ajax.js ('k') | chrome/test/functional/ispy/common/constants.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698