Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: build/android/pylib/gtest/setup.py

Issue 600833002: Start building ui_base_unittests targets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/android/pylib/gtest/gtest_config.py ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 22 matching lines...) Expand all
33 'third_party/WebKit/Source/platform/heap/BlinkHeapUnitTests.isolate', 33 'third_party/WebKit/Source/platform/heap/BlinkHeapUnitTests.isolate',
34 'breakpad_unittests': 'breakpad/breakpad_unittests.isolate', 34 'breakpad_unittests': 'breakpad/breakpad_unittests.isolate',
35 'cc_perftests': 'cc/cc_perftests.isolate', 35 'cc_perftests': 'cc/cc_perftests.isolate',
36 'components_unittests': 'components/components_unittests.isolate', 36 'components_unittests': 'components/components_unittests.isolate',
37 'content_browsertests': 'content/content_browsertests.isolate', 37 'content_browsertests': 'content/content_browsertests.isolate',
38 'content_unittests': 'content/content_unittests.isolate', 38 'content_unittests': 'content/content_unittests.isolate',
39 'media_perftests': 'media/media_perftests.isolate', 39 'media_perftests': 'media/media_perftests.isolate',
40 'media_unittests': 'media/media_unittests.isolate', 40 'media_unittests': 'media/media_unittests.isolate',
41 'net_unittests': 'net/net_unittests.isolate', 41 'net_unittests': 'net/net_unittests.isolate',
42 'sql_unittests': 'sql/sql_unittests.isolate', 42 'sql_unittests': 'sql/sql_unittests.isolate',
43 'ui_base_unittests': 'ui/base/ui_base_tests.isolate',
43 'ui_unittests': 'ui/base/ui_base_tests.isolate', 44 'ui_unittests': 'ui/base/ui_base_tests.isolate',
44 'unit_tests': 'chrome/unit_tests.isolate', 45 'unit_tests': 'chrome/unit_tests.isolate',
45 'webkit_unit_tests': 46 'webkit_unit_tests':
46 'third_party/WebKit/Source/web/WebKitUnitTests.isolate', 47 'third_party/WebKit/Source/web/WebKitUnitTests.isolate',
47 } 48 }
48 49
49 # Used for filtering large data deps at a finer grain than what's allowed in 50 # Used for filtering large data deps at a finer grain than what's allowed in
50 # isolate files since pushing deps to devices is expensive. 51 # isolate files since pushing deps to devices is expensive.
51 # Wildcards are allowed. 52 # Wildcards are allowed.
52 _DEPS_EXCLUSION_LIST = [ 53 _DEPS_EXCLUSION_LIST = [
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 if test_options.gtest_filter: 335 if test_options.gtest_filter:
335 tests = unittest_util.FilterTestNames(tests, test_options.gtest_filter) 336 tests = unittest_util.FilterTestNames(tests, test_options.gtest_filter)
336 337
337 # Coalesce unit tests into a single test per device 338 # Coalesce unit tests into a single test per device
338 if test_options.suite_name != 'content_browsertests': 339 if test_options.suite_name != 'content_browsertests':
339 num_devices = len(devices) 340 num_devices = len(devices)
340 tests = [':'.join(tests[i::num_devices]) for i in xrange(num_devices)] 341 tests = [':'.join(tests[i::num_devices]) for i in xrange(num_devices)]
341 tests = [t for t in tests if t] 342 tests = [t for t in tests if t]
342 343
343 return (TestRunnerFactory, tests) 344 return (TestRunnerFactory, tests)
OLDNEW
« no previous file with comments | « build/android/pylib/gtest/gtest_config.py ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698