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 import collections | 7 import collections |
8 import os | 8 import os |
9 import subprocess | 9 import subprocess |
10 import sys | 10 import sys |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 'org.chromium.native_test.ChromeNativeTestActivity', | 76 'org.chromium.native_test.ChromeNativeTestActivity', |
77 '/data/local/tmp/chrome-native-tests-command-line', | 77 '/data/local/tmp/chrome-native-tests-command-line', |
78 None, | 78 None, |
79 None), | 79 None), |
80 'content_browsertests': PackageInfo( | 80 'content_browsertests': PackageInfo( |
81 'org.chromium.content_browsertests_apk', | 81 'org.chromium.content_browsertests_apk', |
82 'org.chromium.content_browsertests_apk.ContentBrowserTestsActivity', | 82 'org.chromium.content_browsertests_apk.ContentBrowserTestsActivity', |
83 '/data/local/tmp/content-browser-tests-command-line', | 83 '/data/local/tmp/content-browser-tests-command-line', |
84 None, | 84 None, |
85 None), | 85 None), |
| 86 'chromedriver_webview_shell': PackageInfo( |
| 87 'org.chromium.chromedriver_webview_shell', |
| 88 'org.chromium.chromedriver_webview_shell.Main', |
| 89 None, |
| 90 None, |
| 91 None), |
86 } | 92 } |
87 | 93 |
88 | 94 |
89 # Ports arrangement for various test servers used in Chrome for Android. | 95 # Ports arrangement for various test servers used in Chrome for Android. |
90 # Lighttpd server will attempt to use 9000 as default port, if unavailable it | 96 # Lighttpd server will attempt to use 9000 as default port, if unavailable it |
91 # will find a free port from 8001 - 8999. | 97 # will find a free port from 8001 - 8999. |
92 LIGHTTPD_DEFAULT_PORT = 9000 | 98 LIGHTTPD_DEFAULT_PORT = 9000 |
93 LIGHTTPD_RANDOM_PORT_FIRST = 8001 | 99 LIGHTTPD_RANDOM_PORT_FIRST = 8001 |
94 LIGHTTPD_RANDOM_PORT_LAST = 8999 | 100 LIGHTTPD_RANDOM_PORT_LAST = 8999 |
95 TEST_SYNC_SERVER_PORT = 9031 | 101 TEST_SYNC_SERVER_PORT = 9031 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 except OSError: | 170 except OSError: |
165 print >> sys.stderr, 'No adb found in $PATH, fallback to checked in binary.' | 171 print >> sys.stderr, 'No adb found in $PATH, fallback to checked in binary.' |
166 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') | 172 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') |
167 | 173 |
168 | 174 |
169 ADB_PATH = _GetADBPath() | 175 ADB_PATH = _GetADBPath() |
170 | 176 |
171 # Exit codes | 177 # Exit codes |
172 ERROR_EXIT_CODE = 1 | 178 ERROR_EXIT_CODE = 1 |
173 WARNING_EXIT_CODE = 88 | 179 WARNING_EXIT_CODE = 88 |
OLD | NEW |