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 # pylint: disable=W0212 | 6 # pylint: disable=W0212 |
7 | 7 |
8 import collections | 8 import collections |
9 import logging | 9 import logging |
10 import os | 10 import os |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 'com.google.android.apps.chrome.Main', | 60 'com.google.android.apps.chrome.Main', |
61 '/data/local/chrome-command-line', | 61 '/data/local/chrome-command-line', |
62 'chrome_devtools_remote', | 62 'chrome_devtools_remote', |
63 None), | 63 None), |
64 'legacy_browser': PackageInfo( | 64 'legacy_browser': PackageInfo( |
65 'com.google.android.browser', | 65 'com.google.android.browser', |
66 'com.android.browser.BrowserActivity', | 66 'com.android.browser.BrowserActivity', |
67 None, | 67 None, |
68 None, | 68 None, |
69 None), | 69 None), |
| 70 'chromecast_shell': PackageInfo( |
| 71 'com.google.android.apps.mediashell', |
| 72 'com.google.android.apps.mediashell.MediaShellActivity', |
| 73 '/data/local/tmp/castshell-command-line', |
| 74 None, |
| 75 None), |
70 'content_shell': PackageInfo( | 76 'content_shell': PackageInfo( |
71 'org.chromium.content_shell_apk', | 77 'org.chromium.content_shell_apk', |
72 'org.chromium.content_shell_apk.ContentShellActivity', | 78 'org.chromium.content_shell_apk.ContentShellActivity', |
73 '/data/local/tmp/content-shell-command-line', | 79 '/data/local/tmp/content-shell-command-line', |
74 None, | 80 None, |
75 'org.chromium.content_shell_apk.tests'), | 81 'org.chromium.content_shell_apk.tests'), |
76 'chrome_shell': PackageInfo( | 82 'chrome_shell': PackageInfo( |
77 'org.chromium.chrome.shell', | 83 'org.chromium.chrome.shell', |
78 'org.chromium.chrome.shell.ChromeShellActivity', | 84 'org.chromium.chrome.shell.ChromeShellActivity', |
79 '/data/local/tmp/chrome-shell-command-line', | 85 '/data/local/tmp/chrome-shell-command-line', |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull) | 215 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull) |
210 return 'adb' | 216 return 'adb' |
211 except OSError: | 217 except OSError: |
212 logging.debug('No adb found in $PATH, fallback to checked in binary.') | 218 logging.debug('No adb found in $PATH, fallback to checked in binary.') |
213 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') | 219 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') |
214 | 220 |
215 | 221 |
216 # Exit codes | 222 # Exit codes |
217 ERROR_EXIT_CODE = 1 | 223 ERROR_EXIT_CODE = 1 |
218 WARNING_EXIT_CODE = 88 | 224 WARNING_EXIT_CODE = 88 |
OLD | NEW |