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

Unified Diff: chrome/test/pyautolib/pyauto_paths.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/pyautolib/pyauto_errors.py ('k') | chrome/test/pyautolib/pyauto_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/pyauto_paths.py
===================================================================
--- chrome/test/pyautolib/pyauto_paths.py (revision 261231)
+++ chrome/test/pyautolib/pyauto_paths.py (working copy)
@@ -1,51 +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.
-
-"""Common paths for pyauto tests."""
-
-import os
-import sys
-
-
-def GetSourceDir():
- """Returns src/ directory."""
- script_dir = os.path.abspath(os.path.dirname(__file__))
- return os.path.join(script_dir, os.pardir, os.pardir, os.pardir)
-
-
-def GetThirdPartyDir():
- """Returns src/third_party directory."""
- return os.path.join(GetSourceDir(), 'third_party')
-
-
-def GetBuildDirs():
- """Returns list of possible build directories."""
- # List of dirs that can contain a Debug/Release build.
- outer_dirs = {
- 'linux2': ['out'],
- 'linux3': ['out'],
- 'darwin': ['out', 'xcodebuild'],
- 'win32': ['chrome', 'build', 'out'],
- 'cygwin': ['chrome'],
- }.get(sys.platform, [])
- src_dir = GetSourceDir()
- build_dirs = []
- for dir in outer_dirs:
- build_dirs += [os.path.join(src_dir, dir, 'Debug')]
- build_dirs += [os.path.join(src_dir, dir, 'Release')]
- return build_dirs
-
-
-def GetChromeDriverExe():
- """Returns path to ChromeDriver executable, or None if cannot be found."""
- exe_name = 'chromedriver'
- if sys.platform == 'win32':
- exe_name += '.exe'
-
- import pyautolib
- dir = os.path.dirname(pyautolib.__file__)
- exe = os.path.join(dir, exe_name)
- if os.path.exists(exe):
- return exe
- return None
« no previous file with comments | « chrome/test/pyautolib/pyauto_errors.py ('k') | chrome/test/pyautolib/pyauto_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698