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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 'com.google.android.apps.mediashell.MediaShellActivity', | 83 'com.google.android.apps.mediashell.MediaShellActivity', |
84 '/data/local/tmp/castshell-command-line', | 84 '/data/local/tmp/castshell-command-line', |
85 None, | 85 None, |
86 None), | 86 None), |
87 'content_shell': PackageInfo( | 87 'content_shell': PackageInfo( |
88 'org.chromium.content_shell_apk', | 88 'org.chromium.content_shell_apk', |
89 'org.chromium.content_shell_apk.ContentShellActivity', | 89 'org.chromium.content_shell_apk.ContentShellActivity', |
90 '/data/local/tmp/content-shell-command-line', | 90 '/data/local/tmp/content-shell-command-line', |
91 None, | 91 None, |
92 'org.chromium.content_shell_apk.tests'), | 92 'org.chromium.content_shell_apk.tests'), |
93 'chrome_shell': PackageInfo( | |
94 'org.chromium.chrome.shell', | |
95 'org.chromium.chrome.shell.ChromeShellActivity', | |
96 '/data/local/tmp/chrome-shell-command-line', | |
97 'chrome_shell_devtools_remote', | |
98 'org.chromium.chrome.shell.tests'), | |
99 'android_webview_shell': PackageInfo( | 93 'android_webview_shell': PackageInfo( |
100 'org.chromium.android_webview.shell', | 94 'org.chromium.android_webview.shell', |
101 'org.chromium.android_webview.shell.AwShellActivity', | 95 'org.chromium.android_webview.shell.AwShellActivity', |
102 '/data/local/tmp/android-webview-command-line', | 96 '/data/local/tmp/android-webview-command-line', |
103 None, | 97 None, |
104 'org.chromium.android_webview.test'), | 98 'org.chromium.android_webview.test'), |
105 'gtest': PackageInfo( | 99 'gtest': PackageInfo( |
106 'org.chromium.native_test', | 100 'org.chromium.native_test', |
107 'org.chromium.native_test.NativeUnitTestActivity', | 101 'org.chromium.native_test.NativeUnitTestActivity', |
108 '/data/local/tmp/chrome-native-tests-command-line', | 102 '/data/local/tmp/chrome-native-tests-command-line', |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull) | 295 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull) |
302 return 'adb' | 296 return 'adb' |
303 except OSError: | 297 except OSError: |
304 logging.debug('No adb found in $PATH, fallback to checked in binary.') | 298 logging.debug('No adb found in $PATH, fallback to checked in binary.') |
305 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') | 299 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') |
306 | 300 |
307 # Exit codes | 301 # Exit codes |
308 ERROR_EXIT_CODE = 1 | 302 ERROR_EXIT_CODE = 1 |
309 INFRA_EXIT_CODE = 87 | 303 INFRA_EXIT_CODE = 87 |
310 WARNING_EXIT_CODE = 88 | 304 WARNING_EXIT_CODE = 88 |
OLD | NEW |