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

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

Issue 57873006: Add .isolate for media_perftests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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 | « no previous file | media/media_perftests.isolate » ('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 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 15 matching lines...) Expand all
26 import unittest_util 26 import unittest_util
27 27
28 28
29 _ISOLATE_FILE_PATHS = { 29 _ISOLATE_FILE_PATHS = {
30 'base_unittests': 'base/base_unittests.isolate', 30 'base_unittests': 'base/base_unittests.isolate',
31 'breakpad_unittests': 'breakpad/breakpad_unittests.isolate', 31 'breakpad_unittests': 'breakpad/breakpad_unittests.isolate',
32 'cc_perftests': 'cc/cc_perftests.isolate', 32 'cc_perftests': 'cc/cc_perftests.isolate',
33 'components_unittests': 'components/components_unittests.isolate', 33 'components_unittests': 'components/components_unittests.isolate',
34 'content_browsertests': 'content/content_browsertests.isolate', 34 'content_browsertests': 'content/content_browsertests.isolate',
35 'content_unittests': 'content/content_unittests.isolate', 35 'content_unittests': 'content/content_unittests.isolate',
36 'media_perftests': 'media/media_perftests.isolate',
36 'media_unittests': 'media/media_unittests.isolate', 37 'media_unittests': 'media/media_unittests.isolate',
37 'net_unittests': 'net/net_unittests.isolate', 38 'net_unittests': 'net/net_unittests.isolate',
38 'ui_unittests': 'ui/ui_unittests.isolate', 39 'ui_unittests': 'ui/ui_unittests.isolate',
39 'unit_tests': 'chrome/unit_tests.isolate', 40 'unit_tests': 'chrome/unit_tests.isolate',
40 'webkit_unit_tests': 41 'webkit_unit_tests':
41 'third_party/WebKit/Source/web/WebKitUnitTests.isolate', 42 'third_party/WebKit/Source/web/WebKitUnitTests.isolate',
42 } 43 }
43 44
44 # Paths relative to third_party/webrtc/ (kept separate for readability). 45 # Paths relative to third_party/webrtc/ (kept separate for readability).
45 _WEBRTC_ISOLATE_FILE_PATHS = { 46 _WEBRTC_ISOLATE_FILE_PATHS = {
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 if test_options.gtest_filter: 312 if test_options.gtest_filter:
312 tests = unittest_util.FilterTestNames(tests, test_options.gtest_filter) 313 tests = unittest_util.FilterTestNames(tests, test_options.gtest_filter)
313 314
314 # Coalesce unit tests into a single test per device 315 # Coalesce unit tests into a single test per device
315 if test_options.suite_name != 'content_browsertests': 316 if test_options.suite_name != 'content_browsertests':
316 num_devices = len(devices) 317 num_devices = len(devices)
317 tests = [':'.join(tests[i::num_devices]) for i in xrange(num_devices)] 318 tests = [':'.join(tests[i::num_devices]) for i in xrange(num_devices)]
318 tests = [t for t in tests if t] 319 tests = [t for t in tests if t]
319 320
320 return (TestRunnerFactory, tests) 321 return (TestRunnerFactory, tests)
OLDNEW
« no previous file with comments | « no previous file | media/media_perftests.isolate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698