| 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 infra.libs.infra_types import freeze | 5 from infra.libs.infra_types import freeze |
| 6 from slave import recipe_api | 6 from slave import recipe_api |
| 7 from slave.recipe_modules.webrtc import builders | 7 from . import builders |
| 8 | 8 |
| 9 | 9 |
| 10 class WebRTCApi(recipe_api.RecipeApi): | 10 class WebRTCApi(recipe_api.RecipeApi): |
| 11 def __init__(self, **kwargs): | 11 def __init__(self, **kwargs): |
| 12 super(WebRTCApi, self).__init__(**kwargs) | 12 super(WebRTCApi, self).__init__(**kwargs) |
| 13 self._env = {} | 13 self._env = {} |
| 14 | 14 |
| 15 BUILDERS = builders.BUILDERS | 15 BUILDERS = builders.BUILDERS |
| 16 RECIPE_CONFIGS = builders.RECIPE_CONFIGS | 16 RECIPE_CONFIGS = builders.RECIPE_CONFIGS |
| 17 | 17 |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 def clean_test_output(self): | 441 def clean_test_output(self): |
| 442 """Remove all test output in out/, since we have tests leaking files.""" | 442 """Remove all test output in out/, since we have tests leaking files.""" |
| 443 out_dir = self.m.path['checkout'].join('out') | 443 out_dir = self.m.path['checkout'].join('out') |
| 444 self.m.python('clean test output files', | 444 self.m.python('clean test output files', |
| 445 script=self.resource('cleanup_files.py'), | 445 script=self.resource('cleanup_files.py'), |
| 446 args=[out_dir], | 446 args=[out_dir], |
| 447 infra_step=True) | 447 infra_step=True) |
| 448 | 448 |
| 449 def virtual_webcam_check(self): | 449 def virtual_webcam_check(self): |
| 450 self.m.python('webcam_check', self.resource('ensure_webcam_is_running.py')) | 450 self.m.python('webcam_check', self.resource('ensure_webcam_is_running.py')) |
| OLD | NEW |