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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
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 431300f9c9706a2367b11047d03169213a55be08..3fd25a6cf9a1b7ce2679a85a376fe900ed86b998 100644
--- a/tools/perf/page_sets/webrtc_cases.py
+++ b/tools/perf/page_sets/webrtc_cases.py
@@ -1,6 +1,8 @@
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import os
+
from telemetry.page import page as page_module
from telemetry.page import page_set as page_set_module
@@ -10,6 +12,10 @@ class WebrtcCasesPage(page_module.Page):
def __init__(self, url, page_set):
super(WebrtcCasesPage, self).__init__(url=url, page_set=page_set)
+ with open(os.path.join(os.path.dirname(__file__),
+ 'webrtc_track_peerconnections.js')) as javascript:
+ self.script_to_evaluate_on_commit = javascript.read()
+
class Page1(WebrtcCasesPage):
« 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