| 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 os | 7 import os |
| 8 import subprocess | 8 import subprocess |
| 9 import sys | 9 import sys |
| 10 | 10 |
| 11 | 11 |
| 12 DIR_SOURCE_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), | 12 DIR_SOURCE_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), |
| 13 os.pardir, os.pardir, os.pardir)) | 13 os.pardir, os.pardir, os.pardir)) |
| 14 ISOLATE_DEPS_DIR = os.path.join(DIR_SOURCE_ROOT, 'isolate_deps_dir') | 14 ISOLATE_DEPS_DIR = os.path.join(DIR_SOURCE_ROOT, 'isolate_deps_dir') |
| 15 EMULATOR_SDK_ROOT = os.path.abspath(os.path.join(DIR_SOURCE_ROOT, os.pardir, | 15 EMULATOR_SDK_ROOT = os.path.abspath(os.path.join(DIR_SOURCE_ROOT, os.pardir, |
| 16 os.pardir)) | 16 os.pardir)) |
| 17 | 17 |
| 18 CHROME_PACKAGE = 'com.google.android.apps.chrome' | 18 CHROME_PACKAGE = 'com.google.android.apps.chrome' |
| 19 CHROME_ACTIVITY = 'com.google.android.apps.chrome.Main' | 19 CHROME_ACTIVITY = 'com.google.android.apps.chrome.Main' |
| 20 CHROME_DEVTOOLS_SOCKET = 'chrome_devtools_remote' | 20 CHROME_DEVTOOLS_SOCKET = 'chrome_devtools_remote' |
| 21 | 21 |
| 22 CHROME_STABLE_PACKAGE = 'com.android.chrome' |
| 23 CHROME_BETA_PACKAGE = 'com.chrome.beta' |
| 24 |
| 22 CHROME_TESTS_PACKAGE = 'com.google.android.apps.chrome.tests' | 25 CHROME_TESTS_PACKAGE = 'com.google.android.apps.chrome.tests' |
| 23 | 26 |
| 24 LEGACY_BROWSER_PACKAGE = 'com.google.android.browser' | 27 LEGACY_BROWSER_PACKAGE = 'com.google.android.browser' |
| 25 LEGACY_BROWSER_ACTIVITY = 'com.android.browser.BrowserActivity' | 28 LEGACY_BROWSER_ACTIVITY = 'com.android.browser.BrowserActivity' |
| 26 | 29 |
| 27 CONTENT_SHELL_PACKAGE = 'org.chromium.content_shell_apk' | 30 CONTENT_SHELL_PACKAGE = 'org.chromium.content_shell_apk' |
| 28 CONTENT_SHELL_ACTIVITY = 'org.chromium.content_shell_apk.ContentShellActivity' | 31 CONTENT_SHELL_ACTIVITY = 'org.chromium.content_shell_apk.ContentShellActivity' |
| 29 | 32 |
| 30 CHROME_SHELL_PACKAGE = 'org.chromium.chrome.browser.test' | 33 CHROME_SHELL_PACKAGE = 'org.chromium.chrome.browser.test' |
| 31 | 34 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 except OSError: | 109 except OSError: |
| 107 print >> sys.stderr, 'No adb found in $PATH, fallback to checked in binary.' | 110 print >> sys.stderr, 'No adb found in $PATH, fallback to checked in binary.' |
| 108 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') | 111 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') |
| 109 | 112 |
| 110 | 113 |
| 111 ADB_PATH = _GetADBPath() | 114 ADB_PATH = _GetADBPath() |
| 112 | 115 |
| 113 # Exit codes | 116 # Exit codes |
| 114 ERROR_EXIT_CODE = 1 | 117 ERROR_EXIT_CODE = 1 |
| 115 WARNING_EXIT_CODE = 88 | 118 WARNING_EXIT_CODE = 88 |
| OLD | NEW |