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

Unified Diff: tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/__init__.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 | « content/test/gpu/page_sets/__init__.py ('k') | tools/chrome_proxy/live_tests/pagesets/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/__init__.py
diff --git a/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/__init__.py b/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/__init__.py
index 799c2462114f876d084458af5fea9785446251c1..c5699ad3ace02bfb388353e41692552c05488196 100644
--- a/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/__init__.py
+++ b/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/__init__.py
@@ -6,8 +6,9 @@ import inspect
import os
import sys
-from telemetry.core import discover
from telemetry import story
+from telemetry.util import classes_util
+
import video
@@ -15,8 +16,7 @@ import video
start_dir = os.path.dirname(os.path.abspath(__file__))
top_level_dir = os.path.abspath(os.path.join(start_dir, os.pardir, os.pardir))
base_class = story.StorySet
-for cls in discover.DiscoverClasses(
- start_dir, top_level_dir, base_class).values():
+for cls in classes_util.DiscoverClasses(start_dir, top_level_dir, base_class):
setattr(sys.modules[__name__], cls.__name__, cls)
# DiscoverClasses makes the assumption that there is exactly one matching
« no previous file with comments | « content/test/gpu/page_sets/__init__.py ('k') | tools/chrome_proxy/live_tests/pagesets/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698