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

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

Issue 798903003: Adding telemetry WebRTC measurements for the audio codecs we support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 6 years 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/data/webrtc_cases_009.wpr.sha1 ('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 import os 4 import os
5 5
6 from telemetry.page import page as page_module 6 from telemetry.page import page as page_module
7 from telemetry.page import page_set as page_set_module 7 from telemetry.page import page_set as page_set_module
8 8
9 9
10 class WebrtcCasesPage(page_module.Page): 10 class WebrtcCasesPage(page_module.Page):
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 super(Page3, self).__init__( 57 super(Page3, self).__init__(
58 url=('http://googlechrome.github.io/webrtc/samples/web/content/' 58 url=('http://googlechrome.github.io/webrtc/samples/web/content/'
59 'getusermedia/resolution/'), 59 'getusermedia/resolution/'),
60 page_set=page_set) 60 page_set=page_set)
61 61
62 def RunPageInteractions(self, action_runner): 62 def RunPageInteractions(self, action_runner):
63 action_runner.ClickElement('button[id="hd"]') 63 action_runner.ClickElement('button[id="hd"]')
64 action_runner.Wait(10) 64 action_runner.Wait(10)
65 65
66 66
67 class Page4(WebrtcCasesPage):
68
69 """ Why: Sets up a WebRTC audio call with Opus. """
70
71 def __init__(self, page_set):
72 super(Page4, self).__init__(
73 url=('http://googlechrome.github.io/webrtc/samples/web/content/'
74 'peerconnection/audio/?codec=OPUS'),
75 page_set=page_set)
76
77 def RunPageInteractions(self, action_runner):
78 action_runner.ExecuteJavaScript('codecSelector.value="OPUS";')
79 action_runner.ClickElement('button[id="callButton"]')
80 action_runner.Wait(10)
81
82
83 class Page5(WebrtcCasesPage):
84
85 """ Why: Sets up a WebRTC audio call with G722. """
86
87 def __init__(self, page_set):
88 super(Page5, self).__init__(
89 url=('http://googlechrome.github.io/webrtc/samples/web/content/'
90 'peerconnection/audio/?codec=G722'),
91 page_set=page_set)
92
93 def RunPageInteractions(self, action_runner):
94 action_runner.ExecuteJavaScript('codecSelector.value="G722";')
95 action_runner.ClickElement('button[id="callButton"]')
96 action_runner.Wait(10)
97
98
99 class Page6(WebrtcCasesPage):
100
101 """ Why: Sets up a WebRTC audio call with PCMU. """
102
103 def __init__(self, page_set):
104 super(Page6, self).__init__(
105 url=('http://googlechrome.github.io/webrtc/samples/web/content/'
106 'peerconnection/audio/?codec=PCMU'),
107 page_set=page_set)
108
109 def RunPageInteractions(self, action_runner):
110 action_runner.ExecuteJavaScript('codecSelector.value="PCMU";')
111 action_runner.ClickElement('button[id="callButton"]')
112 action_runner.Wait(10)
113
114
115 class Page7(WebrtcCasesPage):
116
117 """ Why: Sets up a WebRTC audio call with iSAC 16K. """
118
119 def __init__(self, page_set):
120 super(Page7, self).__init__(
121 url=('http://googlechrome.github.io/webrtc/samples/web/content/'
122 'peerconnection/audio/?codec=ISAC_16K'),
123 page_set=page_set)
124
125 def RunPageInteractions(self, action_runner):
126 action_runner.ExecuteJavaScript('codecSelector.value="ISAC/16000";')
127 action_runner.ClickElement('button[id="callButton"]')
128 action_runner.Wait(10)
129
130
67 class WebrtcCasesPageSet(page_set_module.PageSet): 131 class WebrtcCasesPageSet(page_set_module.PageSet):
68 132
69 """ WebRTC tests for Real-time audio and video communication. """ 133 """ WebRTC tests for Real-time audio and video communication. """
70 134
71 def __init__(self): 135 def __init__(self):
72 super(WebrtcCasesPageSet, self).__init__( 136 super(WebrtcCasesPageSet, self).__init__(
73 archive_data_file='data/webrtc_cases.json', 137 archive_data_file='data/webrtc_cases.json',
74 bucket=page_set_module.PUBLIC_BUCKET) 138 bucket=page_set_module.PUBLIC_BUCKET)
75 139
76 self.AddUserStory(Page1(self)) 140 self.AddUserStory(Page1(self))
77 self.AddUserStory(Page2(self)) 141 self.AddUserStory(Page2(self))
78 self.AddUserStory(Page3(self)) 142 self.AddUserStory(Page3(self))
143 self.AddUserStory(Page1(self))
144 self.AddUserStory(Page2(self))
145 self.AddUserStory(Page3(self))
146 self.AddUserStory(Page4(self))
147 self.AddUserStory(Page5(self))
148 self.AddUserStory(Page6(self))
149 self.AddUserStory(Page7(self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/data/webrtc_cases_009.wpr.sha1 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698