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

Unified Diff: tools/perf/page_sets/power_cases.py

Issue 1984473002: [Telemetry] Add BattOr benchmark. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/page_sets/data/power_cases_001.wpr.sha1 ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/power_cases.py
diff --git a/tools/perf/page_sets/power_cases.py b/tools/perf/page_sets/power_cases.py
new file mode 100644
index 0000000000000000000000000000000000000000..e51ee85bd49a3fc0a82945cdc5ccf927d151126a
--- /dev/null
+++ b/tools/perf/page_sets/power_cases.py
@@ -0,0 +1,40 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from telemetry.page import page as page_module
+from telemetry.page import shared_page_state
+from telemetry import story
+
+
+URL_LIST = [
+ 'https://webkit.org/blog-files/3d-transforms/poster-circle.html',
+ # Does not autoplay on Android devices.
+ 'https://www.youtube.com/watch?v=3KANI2dpXLw?autoplay=1',
+ 'about:blank'
+]
+
+
+class PowerCasesPage(page_module.Page):
+
+ def __init__(self, url, page_set, name=''):
+ super(PowerCasesPage, self).__init__(
+ url=url, page_set=page_set, name=name,
+ credentials_path = 'data/credentials.json',
+ shared_page_state_class=shared_page_state.SharedDesktopPageState)
+ self.archive_data_file = 'data/power_cases.json'
+
+ def RunPageInteractions(self, action_runner):
+ action_runner.Wait(30)
+
+
+class PowerCasesPageSet(story.StorySet):
+ """Power hungry pages, used for power testing."""
+
+ def __init__(self):
+ super(PowerCasesPageSet, self).__init__(
+ archive_data_file='data/power_cases.json',
+ cloud_storage_bucket=story.PARTNER_BUCKET)
+
+ for url in URL_LIST:
+ self.AddStory(PowerCasesPage(url, self))
« no previous file with comments | « tools/perf/page_sets/data/power_cases_001.wpr.sha1 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698