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

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

Issue 1198823004: Update perf page_set to use story_set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/typical_25.py ('k') | tools/perf/replace.sh » ('j') | 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 import os 4 import os
5 5
6 from telemetry import story
6 from telemetry.page import page as page_module 7 from telemetry.page import page as page_module
7 from telemetry.page import page_set as page_set_module
8
9 8
10 WEBRTC_GITHUB_SAMPLES_URL = 'http://webrtc.github.io/samples/src/content/' 9 WEBRTC_GITHUB_SAMPLES_URL = 'http://webrtc.github.io/samples/src/content/'
11 10
12 11
13 class WebrtcCasesPage(page_module.Page): 12 class WebrtcCasesPage(page_module.Page):
14 13
15 def __init__(self, url, page_set, name): 14 def __init__(self, url, page_set, name):
16 super(WebrtcCasesPage, self).__init__( 15 super(WebrtcCasesPage, self).__init__(
17 url=url, page_set=page_set, name=name) 16 url=url, page_set=page_set, name=name)
18 17
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 page_set=page_set) 162 page_set=page_set)
164 163
165 def RunPageInteractions(self, action_runner): 164 def RunPageInteractions(self, action_runner):
166 # It won't have time to finish the 512 MB, but we're only interested in 165 # It won't have time to finish the 512 MB, but we're only interested in
167 # cpu + memory anyway rather than how much data we manage to transfer. 166 # cpu + memory anyway rather than how much data we manage to transfer.
168 action_runner.ExecuteJavaScript('megsToSend.value = 512;') 167 action_runner.ExecuteJavaScript('megsToSend.value = 512;')
169 action_runner.ClickElement('button[id="sendTheData"]') 168 action_runner.ClickElement('button[id="sendTheData"]')
170 action_runner.Wait(30) 169 action_runner.Wait(30)
171 170
172 171
173 class WebrtcCasesPageSet(page_set_module.PageSet): 172 class WebrtcCasesPageSet(story.StorySet):
174 173
175 """ WebRTC tests for Real-time audio and video communication. """ 174 """ WebRTC tests for Real-time audio and video communication. """
176 175
177 def __init__(self): 176 def __init__(self):
178 super(WebrtcCasesPageSet, self).__init__( 177 super(WebrtcCasesPageSet, self).__init__(
179 archive_data_file='data/webrtc_cases.json', 178 archive_data_file='data/webrtc_cases.json',
180 bucket=page_set_module.PUBLIC_BUCKET) 179 cloud_storage_bucket=story.PUBLIC_BUCKET)
181 180
182 self.AddUserStory(Page1(self)) 181 self.AddUserStory(Page1(self))
183 self.AddUserStory(Page2(self)) 182 self.AddUserStory(Page2(self))
184 self.AddUserStory(Page3(self)) 183 self.AddUserStory(Page3(self))
185 # Disable page 4-7 until we can implement http://crbug.com/468732. We can 184 # Disable page 4-7 until we can implement http://crbug.com/468732. We can
186 # get data out from the tests, but it's not very useful yet. 185 # get data out from the tests, but it's not very useful yet.
187 self.AddUserStory(Page8(self)) 186 self.AddUserStory(Page8(self))
188 self.AddUserStory(Page9(self)) 187 self.AddUserStory(Page9(self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/typical_25.py ('k') | tools/perf/replace.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698