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

Unified Diff: chrome/test/chromedriver/test_environment.py

Issue 17428004: [chromedriver] Fix error due to remove of chrome/test/pylib/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/chromedriver/archive.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/test_environment.py
diff --git a/chrome/test/chromedriver/test_environment.py b/chrome/test/chromedriver/test_environment.py
index 396aef36fe2ce0fdacaf83d86642067fb79c09ec..848f046d930ecc54868680e5ffae40ee7f865e87 100644
--- a/chrome/test/chromedriver/test_environment.py
+++ b/chrome/test/chromedriver/test_environment.py
@@ -11,11 +11,9 @@ tests in various environments.
import os
import sys
-_THIS_DIR = os.path.abspath(os.path.dirname(__file__))
-
-sys.path.insert(0, os.path.join(_THIS_DIR, os.pardir, 'pylib'))
+import util
-from common import util
+_THIS_DIR = os.path.abspath(os.path.dirname(__file__))
if util.IsLinux():
sys.path.insert(0, os.path.join(_THIS_DIR, os.pardir, os.pardir, os.pardir,
@@ -78,7 +76,7 @@ class BaseTestEnvironment(object):
class DesktopTestEnvironment(BaseTestEnvironment):
"""Manages the environment java tests require to run on Desktop."""
- #override
+ # override
def GetOS(self):
return util.GetPlatformName()
@@ -91,7 +89,7 @@ class AndroidTestEnvironment(DesktopTestEnvironment):
self._adb = None
self._forwarder = None
- #override
+ # override
def GlobalSetUp(self):
os.putenv('TEST_HTTP_PORT', str(ANDROID_TEST_HTTP_PORT))
os.putenv('TEST_HTTPS_PORT', str(ANDROID_TEST_HTTPS_PORT))
@@ -102,13 +100,13 @@ class AndroidTestEnvironment(DesktopTestEnvironment):
(ANDROID_TEST_HTTPS_PORT, ANDROID_TEST_HTTPS_PORT)],
valgrind_tools.BaseTool(), '127.0.0.1')
- #override
+ # override
def GlobalTearDown(self):
if self._adb is not None:
forwarder.Forwarder.KillDevice(self._adb, valgrind_tools.BaseTool())
if self._forwarder is not None:
self._forwarder.Close()
- #override
+ # override
def GetOS(self):
return 'android'
« no previous file with comments | « chrome/test/chromedriver/archive.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698