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

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

Issue 1075783002: Enable components_browsertests on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GN build and add java dependency to components/test/DEPS Created 5 years, 8 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
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 logging 8 import logging
9 import os 9 import os
10 import sys 10 import sys
(...skipping 13 matching lines...) Expand all
24 'common')) 24 'common'))
25 import unittest_util # pylint: disable=F0401 25 import unittest_util # pylint: disable=F0401
26 26
27 27
28 ISOLATE_FILE_PATHS = { 28 ISOLATE_FILE_PATHS = {
29 'base_unittests': 'base/base_unittests.isolate', 29 'base_unittests': 'base/base_unittests.isolate',
30 'blink_heap_unittests': 30 'blink_heap_unittests':
31 'third_party/WebKit/Source/platform/heap/BlinkHeapUnitTests.isolate', 31 'third_party/WebKit/Source/platform/heap/BlinkHeapUnitTests.isolate',
32 'breakpad_unittests': 'breakpad/breakpad_unittests.isolate', 32 'breakpad_unittests': 'breakpad/breakpad_unittests.isolate',
33 'cc_perftests': 'cc/cc_perftests.isolate', 33 'cc_perftests': 'cc/cc_perftests.isolate',
34 'components_browsertests': 'components/components_browsertests.isolate',
34 'components_unittests': 'components/components_unittests.isolate', 35 'components_unittests': 'components/components_unittests.isolate',
35 'content_browsertests': 'content/content_browsertests.isolate', 36 'content_browsertests': 'content/content_browsertests.isolate',
36 'content_unittests': 'content/content_unittests.isolate', 37 'content_unittests': 'content/content_unittests.isolate',
37 'media_perftests': 'media/media_perftests.isolate', 38 'media_perftests': 'media/media_perftests.isolate',
38 'media_unittests': 'media/media_unittests.isolate', 39 'media_unittests': 'media/media_unittests.isolate',
39 'net_unittests': 'net/net_unittests.isolate', 40 'net_unittests': 'net/net_unittests.isolate',
40 'sql_unittests': 'sql/sql_unittests.isolate', 41 'sql_unittests': 'sql/sql_unittests.isolate',
41 'sync_unit_tests': 'sync/sync_unit_tests.isolate', 42 'sync_unit_tests': 'sync/sync_unit_tests.isolate',
42 'ui_base_unittests': 'ui/base/ui_base_tests.isolate', 43 'ui_base_unittests': 'ui/base/ui_base_tests.isolate',
43 'unit_tests': 'chrome/unit_tests.isolate', 44 'unit_tests': 'chrome/unit_tests.isolate',
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 test_options = test_options._replace( 230 test_options = test_options._replace(
230 test_arguments=('%s --gtest_also_run_disabled_tests' % 231 test_arguments=('%s --gtest_also_run_disabled_tests' %
231 test_options.test_arguments)) 232 test_options.test_arguments))
232 else: 233 else:
233 tests = _FilterDisabledTests(tests, test_options.suite_name, 234 tests = _FilterDisabledTests(tests, test_options.suite_name,
234 bool(test_options.gtest_filter)) 235 bool(test_options.gtest_filter))
235 if test_options.gtest_filter: 236 if test_options.gtest_filter:
236 tests = unittest_util.FilterTestNames(tests, test_options.gtest_filter) 237 tests = unittest_util.FilterTestNames(tests, test_options.gtest_filter)
237 238
238 # Coalesce unit tests into a single test per device 239 # Coalesce unit tests into a single test per device
239 if test_options.suite_name != 'content_browsertests': 240 if (test_options.suite_name != 'content_browsertests' and
241 test_options.suite_name != 'components_browsertests'):
240 num_devices = len(devices) 242 num_devices = len(devices)
241 tests = [':'.join(tests[i::num_devices]) for i in xrange(num_devices)] 243 tests = [':'.join(tests[i::num_devices]) for i in xrange(num_devices)]
242 tests = [t for t in tests if t] 244 tests = [t for t in tests if t]
243 245
244 return (TestRunnerFactory, tests) 246 return (TestRunnerFactory, tests)
OLDNEW
« no previous file with comments | « build/android/pylib/gtest/local_device_gtest_run.py ('k') | build/android/pylib/gtest/test_package_apk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698