| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 from slave import recipe_api | 5 from slave import recipe_api |
| 6 from slave import recipe_util | 6 from slave import recipe_util |
| 7 | 7 |
| 8 | 8 |
| 9 class TestLauncherFilterFileInputPlaceholder(recipe_util.Placeholder): | 9 class TestLauncherFilterFileInputPlaceholder(recipe_util.Placeholder): |
| 10 def __init__(self, api, tests): | 10 def __init__(self, api, tests): |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 generate_json_file=True, | 209 generate_json_file=True, |
| 210 results_directory=results_directory, | 210 results_directory=results_directory, |
| 211 python_mode=True, | 211 python_mode=True, |
| 212 spawn_dbus=spawn_dbus, | 212 spawn_dbus=spawn_dbus, |
| 213 revision=revision, | 213 revision=revision, |
| 214 webkit_revision=webkit_revision, | 214 webkit_revision=webkit_revision, |
| 215 master_class_name=master_class_name, | 215 master_class_name=master_class_name, |
| 216 env=env) | 216 env=env) |
| 217 | 217 |
| 218 def run_telemetry_unittests(self): | 218 def run_telemetry_unittests(self): |
| 219 browser = self.c.BUILD_CONFIG.lower() |
| 220 if self.m.platform.is_win and self.c.TARGET_BITS == 64: |
| 221 browser += '_x64' |
| 219 return self.runtest( | 222 return self.runtest( |
| 220 self.m.path['checkout'].join('tools', 'telemetry', 'run_tests'), | 223 self.m.path['checkout'].join('tools', 'telemetry', 'run_tests'), |
| 221 args=['--browser=%s' % self.c.BUILD_CONFIG.lower()], | 224 args=['--browser=%s' % browser], |
| 222 annotate='gtest', | 225 annotate='gtest', |
| 223 name='telemetry_unittests', | 226 name='telemetry_unittests', |
| 224 test_type='telemetry_unittests', | 227 test_type='telemetry_unittests', |
| 225 python_mode=True, | 228 python_mode=True, |
| 226 xvfb=True) | 229 xvfb=True) |
| 227 | 230 |
| 228 def run_telemetry_perf_unittests(self): | 231 def run_telemetry_perf_unittests(self): |
| 232 browser = self.c.BUILD_CONFIG.lower() |
| 233 if self.m.platform.is_win and self.c.TARGET_BITS == 64: |
| 234 browser += '_x64' |
| 229 return self.runtest( | 235 return self.runtest( |
| 230 self.m.path['checkout'].join('tools', 'perf', 'run_tests'), | 236 self.m.path['checkout'].join('tools', 'perf', 'run_tests'), |
| 231 args=['--browser=%s' % self.c.BUILD_CONFIG.lower()], | 237 args=['--browser=%s' % browser], |
| 232 annotate='gtest', | 238 annotate='gtest', |
| 233 name='telemetry_perf_unittests', | 239 name='telemetry_perf_unittests', |
| 234 test_type='telemetry_perf_unittests', | 240 test_type='telemetry_perf_unittests', |
| 235 python_mode=True, | 241 python_mode=True, |
| 236 xvfb=True) | 242 xvfb=True) |
| 237 | 243 |
| 238 def runhooks(self, run_gyp=True, **kwargs): | 244 def runhooks(self, run_gyp=True, **kwargs): |
| 239 """Run the build-configuration hooks for chromium.""" | 245 """Run the build-configuration hooks for chromium.""" |
| 240 env = kwargs.get('env', {}) | 246 env = kwargs.get('env', {}) |
| 241 if run_gyp: | 247 if run_gyp: |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 '--json', self.m.json.output()], | 329 '--json', self.m.json.output()], |
| 324 step_test_data=lambda: self.m.json.test_api.output([]), | 330 step_test_data=lambda: self.m.json.test_api.output([]), |
| 325 **kwargs) | 331 **kwargs) |
| 326 | 332 |
| 327 def deps2submodules(self, **kwargs): | 333 def deps2submodules(self, **kwargs): |
| 328 return self.m.python( | 334 return self.m.python( |
| 329 'deps2submodules', | 335 'deps2submodules', |
| 330 self.m.path['checkout'].join('tools', 'deps2git', 'deps2submodules.py'), | 336 self.m.path['checkout'].join('tools', 'deps2git', 'deps2submodules.py'), |
| 331 args=['--gitless', self.m.path['checkout'].join('.DEPS.git')], | 337 args=['--gitless', self.m.path['checkout'].join('.DEPS.git')], |
| 332 **kwargs) | 338 **kwargs) |
| OLD | NEW |