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

Unified Diff: tools/perf/benchmarks/benchmark_unittest.py

Issue 1244223002: Create classes_util API, change discover to return a list instead of a dict. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/perf/benchmarks/benchmark_smoke_unittest.py ('k') | tools/perf/benchmarks/skpicture_printer.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/benchmark_unittest.py
diff --git a/tools/perf/benchmarks/benchmark_unittest.py b/tools/perf/benchmarks/benchmark_unittest.py
index 9fe848d1a1857b9409b78a6951bd76c785915aaa..d5d039c547f41a0171a0dd143774bd18bdf79a06 100644
--- a/tools/perf/benchmarks/benchmark_unittest.py
+++ b/tools/perf/benchmarks/benchmark_unittest.py
@@ -11,9 +11,9 @@ import unittest
from core import perf_benchmark
from telemetry import benchmark as benchmark_module
-from telemetry.core import discover
from telemetry.internal.browser import browser_options
from telemetry.testing import progress_reporter
+from telemetry.util import classes_util
def _GetPerfDir(*subdirs):
@@ -22,9 +22,8 @@ def _GetPerfDir(*subdirs):
def _GetAllPerfBenchmarks():
- return discover.DiscoverClasses(
- _GetPerfDir('benchmarks'), _GetPerfDir(), benchmark_module.Benchmark,
- index_by_class_name=True).values()
+ return classes_util.DiscoverClasses(
+ _GetPerfDir('benchmarks'), _GetPerfDir(), benchmark_module.Benchmark)
def _BenchmarkOptionsTestGenerator(benchmark):
def testBenchmarkOptions(self): # pylint: disable=W0613
« no previous file with comments | « tools/perf/benchmarks/benchmark_smoke_unittest.py ('k') | tools/perf/benchmarks/skpicture_printer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698