| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Defines a set of constants shared by test runners and other scripts.""" | 5 """Defines a set of constants shared by test runners and other scripts.""" |
| 6 | 6 |
| 7 import collections | 7 import collections |
| 8 import os | 8 import os |
| 9 import subprocess | 9 import subprocess |
| 10 import sys | 10 import sys |
| 11 | 11 |
| 12 | 12 |
| 13 DIR_SOURCE_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), | 13 DIR_SOURCE_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), |
| 14 os.pardir, os.pardir, os.pardir)) | 14 os.pardir, os.pardir, os.pardir)) |
| 15 ISOLATE_DEPS_DIR = os.path.join(DIR_SOURCE_ROOT, 'isolate_deps_dir') | 15 ISOLATE_DEPS_DIR = os.path.join(DIR_SOURCE_ROOT, 'isolate_deps_dir') |
| 16 EMULATOR_SDK_ROOT = os.path.abspath(os.path.join(DIR_SOURCE_ROOT, os.pardir, | |
| 17 os.pardir)) | |
| 18 | 16 |
| 19 # TODO(craigdh): Remove these once references have been removed downstream. | 17 # TODO(craigdh): Remove these once references have been removed downstream. |
| 20 CHROME_PACKAGE = 'com.google.android.apps.chrome' | 18 CHROME_PACKAGE = 'com.google.android.apps.chrome' |
| 21 CHROME_ACTIVITY = 'com.google.android.apps.chrome.Main' | 19 CHROME_ACTIVITY = 'com.google.android.apps.chrome.Main' |
| 22 | 20 |
| 23 CHROME_STABLE_PACKAGE = 'com.android.chrome' | 21 CHROME_STABLE_PACKAGE = 'com.android.chrome' |
| 24 CHROME_BETA_PACKAGE = 'com.chrome.beta' | 22 CHROME_BETA_PACKAGE = 'com.chrome.beta' |
| 25 | 23 |
| 26 LEGACY_BROWSER_PACKAGE = 'com.google.android.browser' | 24 LEGACY_BROWSER_PACKAGE = 'com.google.android.browser' |
| 27 LEGACY_BROWSER_ACTIVITY = 'com.android.browser.BrowserActivity' | 25 LEGACY_BROWSER_ACTIVITY = 'com.android.browser.BrowserActivity' |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 except OSError: | 154 except OSError: |
| 157 print >> sys.stderr, 'No adb found in $PATH, fallback to checked in binary.' | 155 print >> sys.stderr, 'No adb found in $PATH, fallback to checked in binary.' |
| 158 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') | 156 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') |
| 159 | 157 |
| 160 | 158 |
| 161 ADB_PATH = _GetADBPath() | 159 ADB_PATH = _GetADBPath() |
| 162 | 160 |
| 163 # Exit codes | 161 # Exit codes |
| 164 ERROR_EXIT_CODE = 1 | 162 ERROR_EXIT_CODE = 1 |
| 165 WARNING_EXIT_CODE = 88 | 163 WARNING_EXIT_CODE = 88 |
| OLD | NEW |