| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 SDK_BUILD_TEST_JAVALIB_DIR = 'test.lib.java' | 117 SDK_BUILD_TEST_JAVALIB_DIR = 'test.lib.java' |
| 118 SDK_BUILD_APKS_DIR = 'apks' | 118 SDK_BUILD_APKS_DIR = 'apks' |
| 119 | 119 |
| 120 PERF_OUTPUT_DIR = os.path.join(DIR_SOURCE_ROOT, 'out', 'step_results') | 120 PERF_OUTPUT_DIR = os.path.join(DIR_SOURCE_ROOT, 'out', 'step_results') |
| 121 # The directory on the device where perf test output gets saved to. | 121 # The directory on the device where perf test output gets saved to. |
| 122 DEVICE_PERF_OUTPUT_DIR = ( | 122 DEVICE_PERF_OUTPUT_DIR = ( |
| 123 '/data/data/' + PACKAGE_INFO['chrome'].package + '/files') | 123 '/data/data/' + PACKAGE_INFO['chrome'].package + '/files') |
| 124 | 124 |
| 125 SCREENSHOTS_DIR = os.path.join(DIR_SOURCE_ROOT, 'out_screenshots') | 125 SCREENSHOTS_DIR = os.path.join(DIR_SOURCE_ROOT, 'out_screenshots') |
| 126 | 126 |
| 127 ANDROID_SDK_VERSION = 18 | 127 ANDROID_SDK_VERSION = 19 |
| 128 ANDROID_SDK_ROOT = os.path.join(DIR_SOURCE_ROOT, | 128 ANDROID_SDK_ROOT = os.path.join(DIR_SOURCE_ROOT, |
| 129 'third_party/android_tools/sdk') | 129 'third_party/android_tools/sdk') |
| 130 ANDROID_NDK_ROOT = os.path.join(DIR_SOURCE_ROOT, | 130 ANDROID_NDK_ROOT = os.path.join(DIR_SOURCE_ROOT, |
| 131 'third_party/android_tools/ndk') | 131 'third_party/android_tools/ndk') |
| 132 | 132 |
| 133 EMULATOR_SDK_ROOT = os.path.join(DIR_SOURCE_ROOT, 'android_emulator_sdk') | 133 EMULATOR_SDK_ROOT = os.path.join(DIR_SOURCE_ROOT, 'android_emulator_sdk') |
| 134 | 134 |
| 135 UPSTREAM_FLAKINESS_SERVER = 'test-results.appspot.com' | 135 UPSTREAM_FLAKINESS_SERVER = 'test-results.appspot.com' |
| 136 | 136 |
| 137 | 137 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 except OSError: | 170 except OSError: |
| 171 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.' |
| 172 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') | 172 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') |
| 173 | 173 |
| 174 | 174 |
| 175 ADB_PATH = _GetADBPath() | 175 ADB_PATH = _GetADBPath() |
| 176 | 176 |
| 177 # Exit codes | 177 # Exit codes |
| 178 ERROR_EXIT_CODE = 1 | 178 ERROR_EXIT_CODE = 1 |
| 179 WARNING_EXIT_CODE = 88 | 179 WARNING_EXIT_CODE = 88 |
| OLD | NEW |