| 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 | 6 |
| 7 import fnmatch | 7 import fnmatch |
| 8 import glob | 8 import glob |
| 9 import logging | 9 import logging |
| 10 import os | 10 import os |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 'webkit_unit_tests': | 41 'webkit_unit_tests': |
| 42 'third_party/WebKit/Source/web/WebKitUnitTests.isolate', | 42 'third_party/WebKit/Source/web/WebKitUnitTests.isolate', |
| 43 } | 43 } |
| 44 | 44 |
| 45 # Paths relative to third_party/webrtc/ (kept separate for readability). | 45 # Paths relative to third_party/webrtc/ (kept separate for readability). |
| 46 _WEBRTC_ISOLATE_FILE_PATHS = { | 46 _WEBRTC_ISOLATE_FILE_PATHS = { |
| 47 'audio_decoder_unittests': | 47 'audio_decoder_unittests': |
| 48 'modules/audio_coding/neteq4/audio_decoder_unittests.isolate', | 48 'modules/audio_coding/neteq4/audio_decoder_unittests.isolate', |
| 49 'common_audio_unittests': 'common_audio/common_audio_unittests.isolate', | 49 'common_audio_unittests': 'common_audio/common_audio_unittests.isolate', |
| 50 'common_video_unittests': 'common_video/common_video_unittests.isolate', | 50 'common_video_unittests': 'common_video/common_video_unittests.isolate', |
| 51 'metrics_unittests': 'test/metrics_unittests.isolate', | |
| 52 'modules_tests': 'modules/modules_tests.isolate', | 51 'modules_tests': 'modules/modules_tests.isolate', |
| 53 'modules_unittests': 'modules/modules_unittests.isolate', | 52 'modules_unittests': 'modules/modules_unittests.isolate', |
| 54 'neteq_unittests': 'modules/audio_coding/neteq/neteq_unittests.isolate', | 53 'neteq_unittests': 'modules/audio_coding/neteq/neteq_unittests.isolate', |
| 55 'system_wrappers_unittests': | 54 'system_wrappers_unittests': |
| 56 'system_wrappers/source/system_wrappers_unittests.isolate', | 55 'system_wrappers/source/system_wrappers_unittests.isolate', |
| 57 'test_support_unittests': 'test/test_support_unittests.isolate', | 56 'test_support_unittests': 'test/test_support_unittests.isolate', |
| 58 'tools_unittests': 'tools/tools_unittests.isolate', | 57 'tools_unittests': 'tools/tools_unittests.isolate', |
| 59 'video_engine_core_unittests': | 58 'video_engine_core_unittests': |
| 60 'video_engine/video_engine_core_unittests.isolate', | 59 'video_engine/video_engine_core_unittests.isolate', |
| 61 'voice_engine_unittests': 'voice_engine/voice_engine_unittests.isolate', | 60 'voice_engine_unittests': 'voice_engine/voice_engine_unittests.isolate', |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 if test_options.gtest_filter: | 307 if test_options.gtest_filter: |
| 309 tests = unittest_util.FilterTestNames(tests, test_options.gtest_filter) | 308 tests = unittest_util.FilterTestNames(tests, test_options.gtest_filter) |
| 310 | 309 |
| 311 # Coalesce unit tests into a single test per device | 310 # Coalesce unit tests into a single test per device |
| 312 if test_options.suite_name != 'content_browsertests': | 311 if test_options.suite_name != 'content_browsertests': |
| 313 num_devices = len(devices) | 312 num_devices = len(devices) |
| 314 tests = [':'.join(tests[i::num_devices]) for i in xrange(num_devices)] | 313 tests = [':'.join(tests[i::num_devices]) for i in xrange(num_devices)] |
| 315 tests = [t for t in tests if t] | 314 tests = [t for t in tests if t] |
| 316 | 315 |
| 317 return (TestRunnerFactory, tests) | 316 return (TestRunnerFactory, tests) |
| OLD | NEW |