Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1520)

Side by Side Diff: build/android/pylib/constants.py

Issue 705093005: Add C++11 enum class support to the Java enum class generator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/android/gyp/java_cpp_enum_tests.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 DEVICE_LOCAL_PROPERTIES_PATH = '/data/local.prop' 183 DEVICE_LOCAL_PROPERTIES_PATH = '/data/local.prop'
184 184
185 PYTHON_UNIT_TEST_SUITES = { 185 PYTHON_UNIT_TEST_SUITES = {
186 'pylib_py_unittests': { 186 'pylib_py_unittests': {
187 'path': os.path.join(DIR_SOURCE_ROOT, 'build', 'android'), 187 'path': os.path.join(DIR_SOURCE_ROOT, 'build', 'android'),
188 'test_modules': [ 188 'test_modules': [
189 'pylib.device.device_utils_test', 189 'pylib.device.device_utils_test',
190 ] 190 ]
191 }, 191 },
192 # TODO(mkosiba) Enable after fixing these tests. 192 'gyp_py_unittests': {
193 # 'gyp_py_unittests': { 193 'path': os.path.join(DIR_SOURCE_ROOT, 'build', 'android', 'gyp'),
194 # 'path': os.path.join(constants.DIR_SOURCE_ROOT, 'build', 'android', 'gyp'), 194 'test_modules': [
195 # 'test_modules': [ 195 'java_cpp_enum_tests',
196 # 'java_cpp_enum_tests' 196 ]
197 # ] 197 },
198 # },
199 } 198 }
200 199
201 200
202 def GetBuildType(): 201 def GetBuildType():
203 try: 202 try:
204 return os.environ['BUILDTYPE'] 203 return os.environ['BUILDTYPE']
205 except KeyError: 204 except KeyError:
206 raise Exception('The BUILDTYPE environment variable has not been set') 205 raise Exception('The BUILDTYPE environment variable has not been set')
207 206
208 207
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull) 246 subprocess.call(['adb', 'version'], stdout=devnull, stderr=devnull)
248 return 'adb' 247 return 'adb'
249 except OSError: 248 except OSError:
250 logging.debug('No adb found in $PATH, fallback to checked in binary.') 249 logging.debug('No adb found in $PATH, fallback to checked in binary.')
251 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb') 250 return os.path.join(ANDROID_SDK_ROOT, 'platform-tools', 'adb')
252 251
253 252
254 # Exit codes 253 # Exit codes
255 ERROR_EXIT_CODE = 1 254 ERROR_EXIT_CODE = 1
256 WARNING_EXIT_CODE = 88 255 WARNING_EXIT_CODE = 88
OLDNEW
« no previous file with comments | « build/android/gyp/java_cpp_enum_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698