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

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

Issue 551863005: Added a WebRTC HD page to telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed endure methods. Created 6 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
« no previous file with comments | « tools/perf/page_sets/data/webrtc_cases_000.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/webrtc_cases.py
diff --git a/tools/perf/page_sets/webrtc_cases.py b/tools/perf/page_sets/webrtc_cases.py
index cc61f7a2d2cccfa8d88d56eb94aea0ca9e37cb34..4251fc8e0f3c61d308721be00ec80e64a40a20a2 100644
--- a/tools/perf/page_sets/webrtc_cases.py
+++ b/tools/perf/page_sets/webrtc_cases.py
@@ -35,19 +35,26 @@ class Page2(WebrtcCasesPage):
url='file://third_party/webrtc/samples/js/demos/html/pc1.html',
page_set=page_set)
- def RunEndure(self, action_runner):
+ def RunWebrtc(self, action_runner):
action_runner.ClickElement('button[id="btn1"]')
action_runner.Wait(2)
action_runner.ClickElement('button[id="btn2"]')
action_runner.Wait(10)
action_runner.ClickElement('button[id="btn3"]')
+class Page3(WebrtcCasesPage):
+
+ """ Why: Acquires a high definition local stream. """
+
+ def __init__(self, page_set):
+ super(Page3, self).__init__(
+ url=('http://googlechrome.github.io/webrtc/samples/web/content/'
+ 'getusermedia-resolution/'),
+ page_set=page_set)
+
def RunWebrtc(self, action_runner):
- action_runner.ClickElement('button[id="btn1"]')
- action_runner.Wait(2)
- action_runner.ClickElement('button[id="btn2"]')
+ action_runner.ClickElement('button[id="hd"]')
action_runner.Wait(10)
- action_runner.ClickElement('button[id="btn3"]')
class WebrtcCasesPageSet(page_set_module.PageSet):
@@ -56,7 +63,10 @@ class WebrtcCasesPageSet(page_set_module.PageSet):
def __init__(self):
super(WebrtcCasesPageSet, self).__init__(
+ archive_data_file='data/webrtc_cases.json',
+ bucket=page_set_module.PUBLIC_BUCKET,
serving_dirs=['third_party/webrtc/samples/js'])
self.AddPage(Page1(self))
self.AddPage(Page2(self))
+ self.AddPage(Page3(self))
« no previous file with comments | « tools/perf/page_sets/data/webrtc_cases_000.wpr.sha1 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698