| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 ANDROID_SDK_VERSION = version_codes.MARSHMALLOW | 98 ANDROID_SDK_VERSION = version_codes.MARSHMALLOW |
| 99 ANDROID_SDK_BUILD_TOOLS_VERSION = '25.0.2' | 99 ANDROID_SDK_BUILD_TOOLS_VERSION = '25.0.2' |
| 100 ANDROID_SDK_ROOT = os.path.join(DIR_SOURCE_ROOT, | 100 ANDROID_SDK_ROOT = os.path.join(DIR_SOURCE_ROOT, |
| 101 'third_party', 'android_tools', 'sdk') | 101 'third_party', 'android_tools', 'sdk') |
| 102 ANDROID_SDK_TOOLS = os.path.join(ANDROID_SDK_ROOT, | 102 ANDROID_SDK_TOOLS = os.path.join(ANDROID_SDK_ROOT, |
| 103 'build-tools', ANDROID_SDK_BUILD_TOOLS_VERSION) | 103 'build-tools', ANDROID_SDK_BUILD_TOOLS_VERSION) |
| 104 ANDROID_NDK_ROOT = os.path.join(DIR_SOURCE_ROOT, | 104 ANDROID_NDK_ROOT = os.path.join(DIR_SOURCE_ROOT, |
| 105 'third_party', 'android_tools', 'ndk') | 105 'third_party', 'android_tools', 'ndk') |
| 106 | 106 |
| 107 PROGUARD_SCRIPT_PATH = os.path.join( | |
| 108 ANDROID_SDK_ROOT, 'tools', 'proguard', 'bin', 'proguard.sh') | |
| 109 | |
| 110 PROGUARD_ROOT = os.path.join(DIR_SOURCE_ROOT, 'third_party', 'proguard') | 107 PROGUARD_ROOT = os.path.join(DIR_SOURCE_ROOT, 'third_party', 'proguard') |
| 111 | 108 |
| 112 BAD_DEVICES_JSON = os.path.join(DIR_SOURCE_ROOT, | 109 BAD_DEVICES_JSON = os.path.join(DIR_SOURCE_ROOT, |
| 113 os.environ.get('CHROMIUM_OUT_DIR', 'out'), | 110 os.environ.get('CHROMIUM_OUT_DIR', 'out'), |
| 114 'bad_devices.json') | 111 'bad_devices.json') |
| 115 | 112 |
| 116 UPSTREAM_FLAKINESS_SERVER = 'test-results.appspot.com' | 113 UPSTREAM_FLAKINESS_SERVER = 'test-results.appspot.com' |
| 117 | 114 |
| 118 # TODO(jbudorick): Remove once unused. | 115 # TODO(jbudorick): Remove once unused. |
| 119 DEVICE_LOCAL_PROPERTIES_PATH = '/data/local.prop' | 116 DEVICE_LOCAL_PROPERTIES_PATH = '/data/local.prop' |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 # remove this. | 213 # remove this. |
| 217 def GetAdbPath(): | 214 def GetAdbPath(): |
| 218 from devil.android.sdk import adb_wrapper | 215 from devil.android.sdk import adb_wrapper |
| 219 return adb_wrapper.AdbWrapper.GetAdbPath() | 216 return adb_wrapper.AdbWrapper.GetAdbPath() |
| 220 | 217 |
| 221 | 218 |
| 222 # Exit codes | 219 # Exit codes |
| 223 ERROR_EXIT_CODE = exit_codes.ERROR | 220 ERROR_EXIT_CODE = exit_codes.ERROR |
| 224 INFRA_EXIT_CODE = exit_codes.INFRA | 221 INFRA_EXIT_CODE = exit_codes.INFRA |
| 225 WARNING_EXIT_CODE = exit_codes.WARNING | 222 WARNING_EXIT_CODE = exit_codes.WARNING |
| OLD | NEW |