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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 'devil.android.md5sum_test', | 186 'devil.android.md5sum_test', |
187 'devil.utils.cmd_helper_test', | 187 'devil.utils.cmd_helper_test', |
188 'pylib.results.json_results_test', | 188 'pylib.results.json_results_test', |
189 'pylib.utils.proguard_test', | 189 'pylib.utils.proguard_test', |
190 ] | 190 ] |
191 }, | 191 }, |
192 'gyp_py_unittests': { | 192 'gyp_py_unittests': { |
193 'path': os.path.join(DIR_SOURCE_ROOT, 'build', 'android', 'gyp'), | 193 'path': os.path.join(DIR_SOURCE_ROOT, 'build', 'android', 'gyp'), |
194 'test_modules': [ | 194 'test_modules': [ |
195 'java_cpp_enum_tests', | 195 'java_cpp_enum_tests', |
| 196 'java_google_api_keys_tests', |
196 ] | 197 ] |
197 }, | 198 }, |
198 } | 199 } |
199 | 200 |
200 LOCAL_MACHINE_TESTS = ['junit', 'python'] | 201 LOCAL_MACHINE_TESTS = ['junit', 'python'] |
201 VALID_ENVIRONMENTS = ['local', 'remote_device'] | 202 VALID_ENVIRONMENTS = ['local', 'remote_device'] |
202 VALID_TEST_TYPES = ['gtest', 'instrumentation', 'junit', 'linker', 'monkey', | 203 VALID_TEST_TYPES = ['gtest', 'instrumentation', 'junit', 'linker', 'monkey', |
203 'perf', 'python', 'uirobot'] | 204 'perf', 'python', 'uirobot'] |
204 VALID_DEVICE_TYPES = ['Android', 'iOS'] | 205 VALID_DEVICE_TYPES = ['Android', 'iOS'] |
205 | 206 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull) | 275 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull) |
275 return 'adb' | 276 return 'adb' |
276 except OSError: | 277 except OSError: |
277 logging.debug('No adb found in $PATH, fallback to checked in binary.') | 278 logging.debug('No adb found in $PATH, fallback to checked in binary.') |
278 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') | 279 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') |
279 | 280 |
280 # Exit codes | 281 # Exit codes |
281 ERROR_EXIT_CODE = 1 | 282 ERROR_EXIT_CODE = 1 |
282 INFRA_EXIT_CODE = 87 | 283 INFRA_EXIT_CODE = 87 |
283 WARNING_EXIT_CODE = 88 | 284 WARNING_EXIT_CODE = 88 |
OLD | NEW |