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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 'chrome_shell_devtools_remote', | 95 'chrome_shell_devtools_remote', |
96 'org.chromium.chrome.shell.tests'), | 96 'org.chromium.chrome.shell.tests'), |
97 'android_webview_shell': PackageInfo( | 97 'android_webview_shell': PackageInfo( |
98 'org.chromium.android_webview.shell', | 98 'org.chromium.android_webview.shell', |
99 'org.chromium.android_webview.shell.AwShellActivity', | 99 'org.chromium.android_webview.shell.AwShellActivity', |
100 '/data/local/tmp/android-webview-command-line', | 100 '/data/local/tmp/android-webview-command-line', |
101 None, | 101 None, |
102 'org.chromium.android_webview.test'), | 102 'org.chromium.android_webview.test'), |
103 'gtest': PackageInfo( | 103 'gtest': PackageInfo( |
104 'org.chromium.native_test', | 104 'org.chromium.native_test', |
105 'org.chromium.native_test.NativeUnitTestActivity', | 105 'org.chromium.native_test.NativeTestActivity', |
106 '/data/local/tmp/chrome-native-tests-command-line', | 106 '/data/local/tmp/chrome-native-tests-command-line', |
107 None, | 107 None, |
108 None), | 108 None), |
109 'components_browsertests': PackageInfo( | 109 'components_browsertests': PackageInfo( |
110 'org.chromium.components_browsertests_apk', | 110 'org.chromium.components_browsertests_apk', |
111 ('org.chromium.components_browsertests_apk' + | 111 ('org.chromium.components_browsertests_apk' + |
112 '.ComponentsBrowserTestsActivity'), | 112 '.ComponentsBrowserTestsActivity'), |
113 '/data/local/tmp/chrome-native-tests-command-line', | 113 '/data/local/tmp/components-browser-tests-command-line', |
114 None, | 114 None, |
115 None), | 115 None), |
116 'content_browsertests': PackageInfo( | 116 'content_browsertests': PackageInfo( |
117 'org.chromium.content_browsertests_apk', | 117 'org.chromium.content_browsertests_apk', |
118 'org.chromium.content_browsertests_apk.ContentBrowserTestsActivity', | 118 'org.chromium.content_browsertests_apk.ContentBrowserTestsActivity', |
119 '/data/local/tmp/chrome-native-tests-command-line', | 119 '/data/local/tmp/content-browser-tests-command-line', |
120 None, | 120 None, |
121 None), | 121 None), |
122 'chromedriver_webview_shell': PackageInfo( | 122 'chromedriver_webview_shell': PackageInfo( |
123 'org.chromium.chromedriver_webview_shell', | 123 'org.chromium.chromedriver_webview_shell', |
124 'org.chromium.chromedriver_webview_shell.Main', | 124 'org.chromium.chromedriver_webview_shell.Main', |
125 None, | 125 None, |
126 None, | 126 None, |
127 None), | 127 None), |
128 } | 128 } |
129 | 129 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull) | 293 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull) |
294 return 'adb' | 294 return 'adb' |
295 except OSError: | 295 except OSError: |
296 logging.debug('No adb found in $PATH, fallback to checked in binary.') | 296 logging.debug('No adb found in $PATH, fallback to checked in binary.') |
297 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') | 297 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') |
298 | 298 |
299 # Exit codes | 299 # Exit codes |
300 ERROR_EXIT_CODE = 1 | 300 ERROR_EXIT_CODE = 1 |
301 INFRA_EXIT_CODE = 87 | 301 INFRA_EXIT_CODE = 87 |
302 WARNING_EXIT_CODE = 88 | 302 WARNING_EXIT_CODE = 88 |
OLD | NEW |