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

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

Issue 561803002: Implements peer connection stats measurements in WebRTC call test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@telemetry
Patch Set: Rebased Created 6 years, 2 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
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
5
4 from telemetry.page import page as page_module 6 from telemetry.page import page as page_module
5 from telemetry.page import page_set as page_set_module 7 from telemetry.page import page_set as page_set_module
6 8
7 9
8 class WebrtcCasesPage(page_module.Page): 10 class WebrtcCasesPage(page_module.Page):
9 11
10 def __init__(self, url, page_set): 12 def __init__(self, url, page_set):
11 super(WebrtcCasesPage, self).__init__(url=url, page_set=page_set) 13 super(WebrtcCasesPage, self).__init__(url=url, page_set=page_set)
12 14
15 with open(os.path.join(os.path.dirname(__file__),
16 'webrtc_track_peerconnections.js')) as javascript:
17 self.script_to_evaluate_on_commit = javascript.read()
18
13 19
14 class Page1(WebrtcCasesPage): 20 class Page1(WebrtcCasesPage):
15 21
16 """ Why: Acquires a vga local stream. """ 22 """ Why: Acquires a vga local stream. """
17 23
18 def __init__(self, page_set): 24 def __init__(self, page_set):
19 super(Page1, self).__init__( 25 super(Page1, self).__init__(
20 url=('http://googlechrome.github.io/webrtc/samples/web/content/' 26 url=('http://googlechrome.github.io/webrtc/samples/web/content/'
21 'getusermedia-resolution/'), 27 'getusermedia-resolution/'),
22 page_set=page_set) 28 page_set=page_set)
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 """ WebRTC tests for Real-time audio and video communication. """ 69 """ WebRTC tests for Real-time audio and video communication. """
64 70
65 def __init__(self): 71 def __init__(self):
66 super(WebrtcCasesPageSet, self).__init__( 72 super(WebrtcCasesPageSet, self).__init__(
67 archive_data_file='data/webrtc_cases.json', 73 archive_data_file='data/webrtc_cases.json',
68 bucket=page_set_module.PUBLIC_BUCKET) 74 bucket=page_set_module.PUBLIC_BUCKET)
69 75
70 self.AddPage(Page1(self)) 76 self.AddPage(Page1(self))
71 self.AddPage(Page2(self)) 77 self.AddPage(Page2(self))
72 self.AddPage(Page3(self)) 78 self.AddPage(Page3(self))
OLDNEW
« no previous file with comments | « tools/perf/metrics/webrtc_stats_unittest.py ('k') | tools/perf/page_sets/webrtc_track_peerconnections.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698