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

Unified Diff: scripts/slave/recipe_modules/chromium_tests/steps.py

Issue 2322453003: Add Android resource_sizes to chromium_tests/chromium_perf
Patch Set: Created 4 years, 3 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
Index: scripts/slave/recipe_modules/chromium_tests/steps.py
diff --git a/scripts/slave/recipe_modules/chromium_tests/steps.py b/scripts/slave/recipe_modules/chromium_tests/steps.py
index a67bb356e0e7cb6c155c5e58dc5cf2366a1cf3a1..d1b65945d2e37d09982acee2ce7e9d9f7202716a 100644
--- a/scripts/slave/recipe_modules/chromium_tests/steps.py
+++ b/scripts/slave/recipe_modules/chromium_tests/steps.py
@@ -99,6 +99,23 @@ class ArchiveBuildStep(Test):
return []
+class ResourceSizesStep(Test):
+ def __init__(self, compile_target, apk_name):
+ self.compile_target = compile_target
+ self.apk_name = apk_name
+
+ def run(self, api, suffix, test_filter=None):
+ apk_path = api.chromium_android.apk_path(self.apk_name)
+ return api.chromium_android.resource_sizes(apk_path, chartjson_file=True)
+
+ def compile_targets(self, api):
+ return [self.compile_target]
+
+ @property
+ def name(self):
+ return 'resource_sizes' # pragma: no cover
+
+
class SizesStep(Test):
def __init__(self, results_url, perf_id):
self.results_url = results_url

Powered by Google App Engine
This is Rietveld 408576698