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

Side by Side Diff: tools/perf/core/perf_data_generator_unittest.py

Issue 2842623002: Remove whitelist from generate_perf_data (Closed)
Patch Set: Created 3 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
« no previous file with comments | « tools/perf/core/perf_data_generator.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2017 The Chromium Authors. All rights reserved. 1 # Copyright 2017 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 import unittest 4 import unittest
5 5
6 from core import perf_data_generator 6 from core import perf_data_generator
7 from core.perf_data_generator import BenchmarkMetadata 7 from core.perf_data_generator import BenchmarkMetadata
8 8
9 from telemetry import benchmark 9 from telemetry import benchmark
10 10
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 swarming_dimensions = [ 128 swarming_dimensions = [
129 {'os': 'SkyNet', 'id': 'T-850', 'pool': 'T-RIP', 'device_ids': ['a']} 129 {'os': 'SkyNet', 'id': 'T-850', 'pool': 'T-RIP', 'device_ids': ['a']}
130 ] 130 ]
131 test_config = { 131 test_config = {
132 'platform': 'android', 132 'platform': 'android',
133 'swarming_dimensions': swarming_dimensions, 133 'swarming_dimensions': swarming_dimensions,
134 } 134 }
135 benchmarks = [BlacklistedBenchmark, NotBlacklistedBenchmark] 135 benchmarks = [BlacklistedBenchmark, NotBlacklistedBenchmark]
136 tests = perf_data_generator.generate_telemetry_tests( 136 tests = perf_data_generator.generate_telemetry_tests(
137 test_config, benchmarks, None, False, ['blacklisted']) 137 test_config, benchmarks, None, ['blacklisted'])
138 138
139 generated_test_names = set(t['name'] for t in tests) 139 generated_test_names = set(t['name'] for t in tests)
140 self.assertEquals( 140 self.assertEquals(
141 generated_test_names, 141 generated_test_names,
142 {'blacklisted', 'not_blacklisted', 'not_blacklisted.reference'}) 142 {'blacklisted', 'not_blacklisted', 'not_blacklisted.reference'})
OLDNEW
« no previous file with comments | « tools/perf/core/perf_data_generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698