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

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

Issue 2924643002: Explicitly setting names for stories in the power benchmarks (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « tools/perf/page_sets/trivial_sites.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 from telemetry.page import page as page_module 4 from telemetry.page import page as page_module
5 from telemetry.page import shared_page_state 5 from telemetry.page import shared_page_state
6 from telemetry import story 6 from telemetry import story
7 7
8 8
9 class Typical10MobilePage(page_module.Page): 9 class Typical10MobilePage(page_module.Page):
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 'http://wapbaike.baidu.com/', 56 'http://wapbaike.baidu.com/',
57 ] 57 ]
58 58
59 59
60 class Typical10MobilePageSet(story.StorySet): 60 class Typical10MobilePageSet(story.StorySet):
61 """10 typical mobile pages, used for power testing.""" 61 """10 typical mobile pages, used for power testing."""
62 62
63 def __init__(self): 63 def __init__(self):
64 super(Typical10MobilePageSet, self).__init__( 64 super(Typical10MobilePageSet, self).__init__(
65 archive_data_file='data/typical_10_mobile.json', 65 archive_data_file='data/typical_10_mobile.json',
66 cloud_storage_bucket=story.PARTNER_BUCKET) 66 cloud_storage_bucket=story.PARTNER_BUCKET,
67 verify_names=True)
67 68
68 for url in urls_list: 69 for url in urls_list:
69 self.AddStory(Typical10MobilePage(url, self)) 70 self.AddStory(Typical10MobilePage(url, self, name=url))
70 71
71 class Typical10MobileReloadPageSet(story.StorySet): 72 class Typical10MobileReloadPageSet(story.StorySet):
72 """10 typical mobile pages, used for reloading power testing.""" 73 """10 typical mobile pages, used for reloading power testing."""
73 74
74 def __init__(self): 75 def __init__(self):
75 super(Typical10MobileReloadPageSet, self).__init__( 76 super(Typical10MobileReloadPageSet, self).__init__(
76 archive_data_file='data/typical_10_mobile.json', 77 archive_data_file='data/typical_10_mobile.json',
77 cloud_storage_bucket=story.PARTNER_BUCKET) 78 cloud_storage_bucket=story.PARTNER_BUCKET)
78 79
79 for url in urls_list: 80 for url in urls_list:
80 self.AddStory(Typical10MobileReloadPage(url, self)) 81 self.AddStory(Typical10MobileReloadPage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/trivial_sites.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698