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

Side by Side Diff: tools/perf/page_sets/power_cases.py

Issue 2012323002: [Android] Implement perf tests to platform mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [Android] Implement perf tests to platform mode. Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 4
5 from telemetry.page import page as page_module 5 from telemetry.page import page as page_module
6 from telemetry.page import shared_page_state 6 from telemetry.page import shared_page_state
7 from telemetry import story 7 from telemetry import story
8 8
9 9
10 URL_LIST = [ 10 URL_LIST = [
11 'https://webkit.org/blog-files/3d-transforms/poster-circle.html', 11 'https://webkit.org/blog-files/3d-transforms/poster-circle.html',
12 # Does not autoplay on Android devices. 12 # Does not autoplay on Android devices.
13 'https://www.youtube.com/watch?v=3KANI2dpXLw?autoplay=1', 13 'https://www.youtube.com/watch?v=3KANI2dpXLw?autoplay=1',
14 'about:blank' 14 'about:blank'
15 ] 15 ]
16 16
17 17
18 class PowerCasesPage(page_module.Page): 18 class PowerCasesPage(page_module.Page):
19 19
20 def __init__(self, url, page_set, name=''): 20 def __init__(self, url, page_set, name=''):
21 super(PowerCasesPage, self).__init__( 21 super(PowerCasesPage, self).__init__(
22 url=url, page_set=page_set, name=name, 22 url=url, page_set=page_set, name=name,
23 credentials_path = 'data/credentials.json', 23 credentials_path = 'data/credentials.json',
24 shared_page_state_class=shared_page_state.SharedDesktopPageState) 24 shared_page_state_class=shared_page_state.SharedDesktopPageState)
25 self.archive_data_file = 'data/power_cases.json' 25 self.archive_data_file = 'data/power_cases.json'
26 26
27 def RunPageInteractions(self, action_runner): 27 def RunPageInteractions(self, action_runner):
28 action_runner.Wait(10) 28 action_runner.Wait(30)
jbudorick 2016/07/06 19:12:10 Are these supposed to be in this CL?
rnephew (Reviews Here) 2016/07/06 21:47:06 Bah, no.
29 29
30 30
31 class PowerCasesPageSet(story.StorySet): 31 class PowerCasesPageSet(story.StorySet):
32 """Power hungry pages, used for power testing.""" 32 """Power hungry pages, used for power testing."""
33 33
34 def __init__(self): 34 def __init__(self):
35 super(PowerCasesPageSet, self).__init__( 35 super(PowerCasesPageSet, self).__init__(
36 archive_data_file='data/power_cases.json', 36 archive_data_file='data/power_cases.json',
37 cloud_storage_bucket=story.PARTNER_BUCKET) 37 cloud_storage_bucket=story.PARTNER_BUCKET)
38 38
39 for url in URL_LIST: 39 for url in URL_LIST:
40 self.AddStory(PowerCasesPage(url, self)) 40 self.AddStory(PowerCasesPage(url, self))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698