OLD | NEW |
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 Loading... |
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'}) |
OLD | NEW |