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