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 # TODO(jbudorick): Split these constants into coherent modules. | 7 # TODO(jbudorick): Split these constants into coherent modules. |
8 | 8 |
9 # pylint: disable=W0212 | 9 # pylint: disable=W0212 |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 'com.google.android.apps.chrome.Main', | 63 'com.google.android.apps.chrome.Main', |
64 '/data/local/chrome-command-line', | 64 '/data/local/chrome-command-line', |
65 'chrome_devtools_remote', | 65 'chrome_devtools_remote', |
66 None), | 66 None), |
67 'chrome_work': PackageInfo( | 67 'chrome_work': PackageInfo( |
68 'com.chrome.work', | 68 'com.chrome.work', |
69 'com.google.android.apps.chrome.Main', | 69 'com.google.android.apps.chrome.Main', |
70 '/data/local/chrome-command-line', | 70 '/data/local/chrome-command-line', |
71 'chrome_devtools_remote', | 71 'chrome_devtools_remote', |
72 None), | 72 None), |
| 73 'chromium': PackageInfo( |
| 74 'org.chromium.chrome', |
| 75 'com.google.android.apps.chrome.Main', |
| 76 '/data/local/chrome-command-line', |
| 77 'chrome_devtools_remote', |
| 78 None), |
73 'legacy_browser': PackageInfo( | 79 'legacy_browser': PackageInfo( |
74 'com.google.android.browser', | 80 'com.google.android.browser', |
75 'com.android.browser.BrowserActivity', | 81 'com.android.browser.BrowserActivity', |
76 None, | 82 None, |
77 None, | 83 None, |
78 None), | 84 None), |
79 'chromecast_shell': PackageInfo( | 85 'chromecast_shell': PackageInfo( |
80 'com.google.android.apps.mediashell', | 86 'com.google.android.apps.mediashell', |
81 'com.google.android.apps.mediashell.MediaShellActivity', | 87 'com.google.android.apps.mediashell.MediaShellActivity', |
82 '/data/local/tmp/castshell-command-line', | 88 '/data/local/tmp/castshell-command-line', |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull) | 299 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull) |
294 return 'adb' | 300 return 'adb' |
295 except OSError: | 301 except OSError: |
296 logging.debug('No adb found in $PATH, fallback to checked in binary.') | 302 logging.debug('No adb found in $PATH, fallback to checked in binary.') |
297 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') | 303 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') |
298 | 304 |
299 # Exit codes | 305 # Exit codes |
300 ERROR_EXIT_CODE = 1 | 306 ERROR_EXIT_CODE = 1 |
301 INFRA_EXIT_CODE = 87 | 307 INFRA_EXIT_CODE = 87 |
302 WARNING_EXIT_CODE = 88 | 308 WARNING_EXIT_CODE = 88 |
OLD | NEW |