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 |
(...skipping 25 matching lines...) Expand all Loading... |
36 'com.google.android.apps.chrome.Main', | 36 'com.google.android.apps.chrome.Main', |
37 '/data/local/chrome-command-line', | 37 '/data/local/chrome-command-line', |
38 'chrome_devtools_remote', | 38 'chrome_devtools_remote', |
39 None), | 39 None), |
40 'chrome_stable': PackageInfo( | 40 'chrome_stable': PackageInfo( |
41 'com.android.chrome', | 41 'com.android.chrome', |
42 'com.google.android.apps.chrome.Main', | 42 'com.google.android.apps.chrome.Main', |
43 '/data/local/chrome-command-line', | 43 '/data/local/chrome-command-line', |
44 'chrome_devtools_remote', | 44 'chrome_devtools_remote', |
45 None), | 45 None), |
| 46 'chrome_dev': PackageInfo( |
| 47 'com.google.android.apps.chrome_dev', |
| 48 'com.google.android.apps.chrome.Main', |
| 49 '/data/local/chrome-command-line', |
| 50 'chrome_devtools_remote', |
| 51 None), |
46 'legacy_browser': PackageInfo( | 52 'legacy_browser': PackageInfo( |
47 'com.google.android.browser', | 53 'com.google.android.browser', |
48 'com.android.browser.BrowserActivity', | 54 'com.android.browser.BrowserActivity', |
49 None, | 55 None, |
50 None, | 56 None, |
51 None), | 57 None), |
52 'content_shell': PackageInfo( | 58 'content_shell': PackageInfo( |
53 'org.chromium.content_shell_apk', | 59 'org.chromium.content_shell_apk', |
54 'org.chromium.content_shell_apk.ContentShellActivity', | 60 'org.chromium.content_shell_apk.ContentShellActivity', |
55 '/data/local/tmp/content-shell-command-line', | 61 '/data/local/tmp/content-shell-command-line', |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 except OSError: | 158 except OSError: |
153 print >> sys.stderr, 'No adb found in $PATH, fallback to checked in binary.' | 159 print >> sys.stderr, 'No adb found in $PATH, fallback to checked in binary.' |
154 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') | 160 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') |
155 | 161 |
156 | 162 |
157 ADB_PATH = _GetADBPath() | 163 ADB_PATH = _GetADBPath() |
158 | 164 |
159 # Exit codes | 165 # Exit codes |
160 ERROR_EXIT_CODE = 1 | 166 ERROR_EXIT_CODE = 1 |
161 WARNING_EXIT_CODE = 88 | 167 WARNING_EXIT_CODE = 88 |
OLD | NEW |