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

Unified 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 side-by-side diff with in-line comments
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 »
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 e5db1bd60944344540dd8822c62f40252b7f67c1..1bd0f9cceb34f39320676d39caf599d7d99403df 100644
--- a/tools/perf/page_sets/webrtc_cases.py
+++ b/tools/perf/page_sets/webrtc_cases.py
@@ -64,6 +64,70 @@ class Page3(WebrtcCasesPage):
action_runner.Wait(10)
+class Page4(WebrtcCasesPage):
+
+ """ Why: Sets up a WebRTC audio call with Opus. """
+
+ def __init__(self, page_set):
+ super(Page4, self).__init__(
+ url=('http://googlechrome.github.io/webrtc/samples/web/content/'
+ 'peerconnection/audio/?codec=OPUS'),
+ page_set=page_set)
+
+ def RunPageInteractions(self, action_runner):
+ action_runner.ExecuteJavaScript('codecSelector.value="OPUS";')
+ action_runner.ClickElement('button[id="callButton"]')
+ action_runner.Wait(10)
+
+
+class Page5(WebrtcCasesPage):
+
+ """ Why: Sets up a WebRTC audio call with G722. """
+
+ def __init__(self, page_set):
+ super(Page5, self).__init__(
+ url=('http://googlechrome.github.io/webrtc/samples/web/content/'
+ 'peerconnection/audio/?codec=G722'),
+ page_set=page_set)
+
+ def RunPageInteractions(self, action_runner):
+ action_runner.ExecuteJavaScript('codecSelector.value="G722";')
+ action_runner.ClickElement('button[id="callButton"]')
+ action_runner.Wait(10)
+
+
+class Page6(WebrtcCasesPage):
+
+ """ Why: Sets up a WebRTC audio call with PCMU. """
+
+ def __init__(self, page_set):
+ super(Page6, self).__init__(
+ url=('http://googlechrome.github.io/webrtc/samples/web/content/'
+ 'peerconnection/audio/?codec=PCMU'),
+ page_set=page_set)
+
+ def RunPageInteractions(self, action_runner):
+ action_runner.ExecuteJavaScript('codecSelector.value="PCMU";')
+ action_runner.ClickElement('button[id="callButton"]')
+ action_runner.Wait(10)
+
+
+class Page7(WebrtcCasesPage):
+
+ """ Why: Sets up a WebRTC audio call with iSAC 16K. """
+
+ def __init__(self, page_set):
+ super(Page7, self).__init__(
+ url=('http://googlechrome.github.io/webrtc/samples/web/content/'
+ 'peerconnection/audio/?codec=ISAC_16K'),
+ page_set=page_set)
+
+ def RunPageInteractions(self, action_runner):
+ action_runner.ExecuteJavaScript('codecSelector.value="ISAC/16000";')
+ action_runner.ClickElement('button[id="callButton"]')
+ action_runner.Wait(10)
+
+
class WebrtcCasesPageSet(page_set_module.PageSet):
""" WebRTC tests for Real-time audio and video communication. """
@@ -76,3 +140,10 @@ class WebrtcCasesPageSet(page_set_module.PageSet):
self.AddUserStory(Page1(self))
self.AddUserStory(Page2(self))
self.AddUserStory(Page3(self))
+ self.AddUserStory(Page1(self))
+ self.AddUserStory(Page2(self))
+ self.AddUserStory(Page3(self))
+ self.AddUserStory(Page4(self))
+ self.AddUserStory(Page5(self))
+ self.AddUserStory(Page6(self))
+ self.AddUserStory(Page7(self))
« 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