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

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

Issue 2761163003: Use local pages for webrtc telemetry tests. (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | tools/perf/page_sets/webrtc_cases/datachannel.html » ('j') | 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 9ea37d81c91878ba5bce15206ae4cf834c80b72c..56c98dd3e7be7e5e53a0f0eb5a04fe96f62fce29 100644
--- a/tools/perf/page_sets/webrtc_cases.py
+++ b/tools/perf/page_sets/webrtc_cases.py
@@ -7,11 +7,6 @@ from telemetry import story
from telemetry.page import page as page_module
-WEBRTC_TEST_PAGES_URL = 'https://test.webrtc.org/manual/'
-WEBRTC_GITHUB_SAMPLES_URL = 'https://webrtc.github.io/samples/src/content/'
-MEDIARECORDER_GITHUB_URL = 'https://rawgit.com/cricdecyan/mediarecorder/master/'
-
-
class WebrtcPage(page_module.Page):
def __init__(self, url, page_set, name):
nednguyen 2017/03/21 15:05:13 Add assertion that webrtc apge must be starting wi
@@ -28,7 +23,7 @@ class Page1(WebrtcPage):
def __init__(self, page_set):
super(Page1, self).__init__(
- url=WEBRTC_GITHUB_SAMPLES_URL + 'getusermedia/resolution/',
+ url='file://webrtc_cases/getusermedia.html',
name='hd_local_stream_10s',
page_set=page_set)
@@ -42,7 +37,7 @@ class Page2(WebrtcPage):
def __init__(self, page_set):
super(Page2, self).__init__(
- url=WEBRTC_GITHUB_SAMPLES_URL + 'peerconnection/constraints/',
+ url='file://webrtc_cases/peerconnection.html',
name='720p_call_45s',
page_set=page_set)
@@ -64,7 +59,7 @@ class Page3(WebrtcPage):
def __init__(self, page_set):
super(Page3, self).__init__(
- url=WEBRTC_GITHUB_SAMPLES_URL + 'datachannel/datatransfer',
+ url='file://webrtc_cases/datachannel.html',
name='30s_datachannel_transfer',
page_set=page_set)
@@ -81,7 +76,7 @@ class Page4(WebrtcPage):
def __init__(self, page_set):
super(Page4, self).__init__(
- url=WEBRTC_GITHUB_SAMPLES_URL + 'peerconnection/audio/?codec=OPUS',
+ url='file://webrtc_cases/peerconnection_audio.html?codec=OPUS',
name='audio_call_opus_10s',
page_set=page_set)
@@ -96,7 +91,7 @@ class Page5(WebrtcPage):
def __init__(self, page_set):
super(Page5, self).__init__(
- url=WEBRTC_GITHUB_SAMPLES_URL + 'peerconnection/audio/?codec=G722',
+ url='file://webrtc_cases/peerconnection_audio.html?codec=G722',
name='audio_call_g722_10s',
page_set=page_set)
@@ -111,7 +106,7 @@ class Page6(WebrtcPage):
def __init__(self, page_set):
super(Page6, self).__init__(
- url=WEBRTC_GITHUB_SAMPLES_URL + 'peerconnection/audio/?codec=PCMU',
+ url='file://webrtc_cases/peerconnection_audio.html?codec=PCMU',
name='audio_call_pcmu_10s',
page_set=page_set)
@@ -126,7 +121,7 @@ class Page7(WebrtcPage):
def __init__(self, page_set):
super(Page7, self).__init__(
- url=WEBRTC_GITHUB_SAMPLES_URL + 'peerconnection/audio/?codec=ISAC_16K',
+ url='file://webrtc_cases/peerconnection_audio.html?codec=ISAC_16K',
name='audio_call_isac16k_10s',
page_set=page_set)
@@ -140,18 +135,15 @@ class Page8(WebrtcPage):
"""Why: Sets up a canvas capture stream connection to a peer connection."""
def __init__(self, page_set):
- canvas_capure_html = 'canvascapture/canvas_capture_peerconnection.html'
super(Page8, self).__init__(
- url=MEDIARECORDER_GITHUB_URL + canvas_capure_html,
+ url='file://webrtc_cases/peerconnection_canvas_capture.html',
name='canvas_capture_peer_connection',
page_set=page_set)
def RunPageInteractions(self, action_runner):
with action_runner.CreateInteraction('Action_Canvas_PeerConnection',
repeatable=False):
- action_runner.WaitForJavaScriptCondition('typeof draw !== "undefined"')
- action_runner.ExecuteJavaScript('draw();')
- action_runner.ExecuteJavaScript('doCanvasCaptureAndPeerConnection();')
+ action_runner.ClickElement('button[id="startButton"]')
nednguyen 2017/03/21 15:05:14 why are you changing the action to run on the page
action_runner.Wait(10)
@@ -160,7 +152,7 @@ class Page9(WebrtcPage):
def __init__(self, page_set):
super(Page9, self).__init__(
- url= WEBRTC_TEST_PAGES_URL + 'multiple-peerconnections/',
+ url='file://webrtc_cases/peerconnection_multiple.html',
name='multiple_peerconnections',
page_set=page_set)
« no previous file with comments | « no previous file | tools/perf/page_sets/webrtc_cases/datachannel.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698