| 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 recipe_engine.types import freeze | 5 from recipe_engine.types import freeze |
| 6 from recipe_engine import recipe_api | 6 from recipe_engine import recipe_api |
| 7 from . import builders | 7 from . import builders |
| 8 from . import steps | 8 from . import steps |
| 9 | 9 |
| 10 | 10 |
| 11 class WebRTCApi(recipe_api.RecipeApi): | 11 class WebRTCApi(recipe_api.RecipeApi): |
| 12 def __init__(self, **kwargs): | 12 def __init__(self, **kwargs): |
| 13 super(WebRTCApi, self).__init__(**kwargs) | 13 super(WebRTCApi, self).__init__(**kwargs) |
| 14 self._env = {} | 14 self._env = {} |
| 15 | 15 |
| 16 BUILDERS = builders.BUILDERS | 16 BUILDERS = builders.BUILDERS |
| 17 RECIPE_CONFIGS = builders.RECIPE_CONFIGS | 17 RECIPE_CONFIGS = builders.RECIPE_CONFIGS |
| 18 | 18 |
| 19 NORMAL_TESTS = ( | 19 NORMAL_TESTS = ( |
| 20 'audio_decoder_unittests', | 20 'audio_decoder_unittests', |
| 21 'common_audio_unittests', | 21 'common_audio_unittests', |
| 22 'common_video_unittests', | 22 'common_video_unittests', |
| 23 'libjingle_media_unittest', | 23 'libjingle_media_unittest', |
| 24 'libjingle_p2p_unittest', | 24 'libjingle_p2p_unittest', |
| 25 'libjingle_peerconnection_unittest', | |
| 26 'modules_tests', | 25 'modules_tests', |
| 27 'modules_unittests', | 26 'modules_unittests', |
| 27 'peerconnection_unittests', |
| 28 'rtc_unittests', | 28 'rtc_unittests', |
| 29 'system_wrappers_unittests', | 29 'system_wrappers_unittests', |
| 30 'test_support_unittests', | 30 'test_support_unittests', |
| 31 'tools_unittests', | 31 'tools_unittests', |
| 32 'video_engine_tests', | 32 'video_engine_tests', |
| 33 'voice_engine_unittests', | 33 'voice_engine_unittests', |
| 34 ) | 34 ) |
| 35 | 35 |
| 36 # Android APK tests. | 36 # Android APK tests. |
| 37 ANDROID_APK_TESTS = freeze({ | 37 ANDROID_APK_TESTS = freeze({ |
| 38 'audio_decoder_unittests': | 38 'audio_decoder_unittests': |
| 39 'webrtc/modules/audio_decoder_unittests.isolate', | 39 'webrtc/modules/audio_decoder_unittests.isolate', |
| 40 'common_audio_unittests': | 40 'common_audio_unittests': |
| 41 'webrtc/common_audio/common_audio_unittests.isolate', | 41 'webrtc/common_audio/common_audio_unittests.isolate', |
| 42 'common_video_unittests': | 42 'common_video_unittests': |
| 43 'webrtc/common_video/common_video_unittests.isolate', | 43 'webrtc/common_video/common_video_unittests.isolate', |
| 44 'modules_tests': 'webrtc/modules/modules_tests.isolate', | 44 'modules_tests': 'webrtc/modules/modules_tests.isolate', |
| 45 'modules_unittests': 'webrtc/modules/modules_unittests.isolate', | 45 'modules_unittests': 'webrtc/modules/modules_unittests.isolate', |
| 46 'peerconnection_unittests': 'talk/peerconnection_unittests.isolate', |
| 46 'system_wrappers_unittests': | 47 'system_wrappers_unittests': |
| 47 'webrtc/system_wrappers/system_wrappers_unittests.isolate', | 48 'webrtc/system_wrappers/system_wrappers_unittests.isolate', |
| 48 'test_support_unittests': 'webrtc/test/test_support_unittests.isolate', | 49 'test_support_unittests': 'webrtc/test/test_support_unittests.isolate', |
| 49 'tools_unittests': 'webrtc/tools/tools_unittests.isolate', | 50 'tools_unittests': 'webrtc/tools/tools_unittests.isolate', |
| 50 'video_engine_tests': 'webrtc/video_engine_tests.isolate', | 51 'video_engine_tests': 'webrtc/video_engine_tests.isolate', |
| 51 'voice_engine_unittests': | 52 'voice_engine_unittests': |
| 52 'webrtc/voice_engine/voice_engine_unittests.isolate', | 53 'webrtc/voice_engine/voice_engine_unittests.isolate', |
| 53 'webrtc_nonparallel_tests': 'webrtc/webrtc_nonparallel_tests.isolate', | 54 'webrtc_nonparallel_tests': 'webrtc/webrtc_nonparallel_tests.isolate', |
| 54 }) | 55 }) |
| 55 | 56 |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 def clean_test_output(self): | 296 def clean_test_output(self): |
| 296 """Remove all test output in out/, since we have tests leaking files.""" | 297 """Remove all test output in out/, since we have tests leaking files.""" |
| 297 out_dir = self.m.path['checkout'].join('out') | 298 out_dir = self.m.path['checkout'].join('out') |
| 298 self.m.python('clean test output files', | 299 self.m.python('clean test output files', |
| 299 script=self.resource('cleanup_files.py'), | 300 script=self.resource('cleanup_files.py'), |
| 300 args=[out_dir], | 301 args=[out_dir], |
| 301 infra_step=True) | 302 infra_step=True) |
| 302 | 303 |
| 303 def virtual_webcam_check(self): | 304 def virtual_webcam_check(self): |
| 304 self.m.python('webcam_check', self.resource('ensure_webcam_is_running.py')) | 305 self.m.python('webcam_check', self.resource('ensure_webcam_is_running.py')) |
| OLD | NEW |