| 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 """Generates test runner factory and tests for GTests.""" | 5 """Generates test runner factory and tests for GTests.""" |
| 6 # pylint: disable=W0212 | 6 # pylint: disable=W0212 |
| 7 | 7 |
| 8 import fnmatch | 8 import fnmatch |
| 9 import glob | 9 import glob |
| 10 import logging | 10 import logging |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 'audio_decoder_unittests': | 50 'audio_decoder_unittests': |
| 51 'modules/audio_coding/neteq4/audio_decoder_unittests.isolate', | 51 'modules/audio_coding/neteq4/audio_decoder_unittests.isolate', |
| 52 'common_audio_unittests': 'common_audio/common_audio_unittests.isolate', | 52 'common_audio_unittests': 'common_audio/common_audio_unittests.isolate', |
| 53 'common_video_unittests': 'common_video/common_video_unittests.isolate', | 53 'common_video_unittests': 'common_video/common_video_unittests.isolate', |
| 54 'modules_tests': 'modules/modules_tests.isolate', | 54 'modules_tests': 'modules/modules_tests.isolate', |
| 55 'modules_unittests': 'modules/modules_unittests.isolate', | 55 'modules_unittests': 'modules/modules_unittests.isolate', |
| 56 'system_wrappers_unittests': | 56 'system_wrappers_unittests': |
| 57 'system_wrappers/source/system_wrappers_unittests.isolate', | 57 'system_wrappers/source/system_wrappers_unittests.isolate', |
| 58 'test_support_unittests': 'test/test_support_unittests.isolate', | 58 'test_support_unittests': 'test/test_support_unittests.isolate', |
| 59 'tools_unittests': 'tools/tools_unittests.isolate', | 59 'tools_unittests': 'tools/tools_unittests.isolate', |
| 60 'video_engine_tests': 'video_engine_tests.isolate', |
| 60 'video_engine_core_unittests': | 61 'video_engine_core_unittests': |
| 61 'video_engine/video_engine_core_unittests.isolate', | 62 'video_engine/video_engine_core_unittests.isolate', |
| 62 'voice_engine_unittests': 'voice_engine/voice_engine_unittests.isolate', | 63 'voice_engine_unittests': 'voice_engine/voice_engine_unittests.isolate', |
| 64 'webrtc_perf_tests': 'webrtc_perf_tests.isolate', |
| 63 } | 65 } |
| 64 | 66 |
| 65 # Append the WebRTC tests with the full path from Chromium's src/ root. | 67 # Append the WebRTC tests with the full path from Chromium's src/ root. |
| 66 for webrtc_test, isolate_path in _WEBRTC_ISOLATE_FILE_PATHS.items(): | 68 for webrtc_test, isolate_path in _WEBRTC_ISOLATE_FILE_PATHS.items(): |
| 67 _ISOLATE_FILE_PATHS[webrtc_test] = 'third_party/webrtc/%s' % isolate_path | 69 _ISOLATE_FILE_PATHS[webrtc_test] = 'third_party/webrtc/%s' % isolate_path |
| 68 | 70 |
| 69 # Used for filtering large data deps at a finer grain than what's allowed in | 71 # Used for filtering large data deps at a finer grain than what's allowed in |
| 70 # isolate files since pushing deps to devices is expensive. | 72 # isolate files since pushing deps to devices is expensive. |
| 71 # Wildcards are allowed. | 73 # Wildcards are allowed. |
| 72 _DEPS_EXCLUSION_LIST = [ | 74 _DEPS_EXCLUSION_LIST = [ |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 if test_options.gtest_filter: | 342 if test_options.gtest_filter: |
| 341 tests = unittest_util.FilterTestNames(tests, test_options.gtest_filter) | 343 tests = unittest_util.FilterTestNames(tests, test_options.gtest_filter) |
| 342 | 344 |
| 343 # Coalesce unit tests into a single test per device | 345 # Coalesce unit tests into a single test per device |
| 344 if test_options.suite_name != 'content_browsertests': | 346 if test_options.suite_name != 'content_browsertests': |
| 345 num_devices = len(devices) | 347 num_devices = len(devices) |
| 346 tests = [':'.join(tests[i::num_devices]) for i in xrange(num_devices)] | 348 tests = [':'.join(tests[i::num_devices]) for i in xrange(num_devices)] |
| 347 tests = [t for t in tests if t] | 349 tests = [t for t in tests if t] |
| 348 | 350 |
| 349 return (TestRunnerFactory, tests) | 351 return (TestRunnerFactory, tests) |
| OLD | NEW |