https://github.com/web-platform-tests/wpt
Revision c1df8c29879917e2602bfb32a292e3c450452e27 authored by Henrik Boström on 04 April 2018, 19:14:49 UTC, committed by Chromium WPT Sync on 04 April 2018, 19:14:49 UTC
Implements the RTCPeerConnection.getStats(MediaStreamTrack) version[1]
of the stats selection algorithm behind flag. This is the equivalent of
doing RTCRtpSender.getStats() or RTCRtpReceiver.getStats() for the
track's sender or receiver. This is tested in external/wpt/.

Due to limitations of the generated V8 bindings it is not possible to
express all versions of RTCPeerConnection.getStats() at the same time
in IDL. Thus this CL introduces a version of getStats() taking
"optional any callbacksOrSelector" as argument, with custom binding
logic performed in RTCPeerConnection.cpp. A fast/peerconnection/
LayoutTest is added to test all combinations.

[1] https://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-getstats

Bug: 680172
Change-Id: I8c64fc64c708d266c926dfa3eb3587c4cbb31210
Reviewed-on: https://chromium-review.googlesource.com/978128
Commit-Queue: Henrik Boström <hbos@chromium.org>
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Reviewed-by: Harald Alvestrand <hta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548149}
1 parent 148f026
History
Tip revision: c1df8c29879917e2602bfb32a292e3c450452e27 authored by Henrik Boström on 04 April 2018, 19:14:49 UTC
RTCPeerConnection.getStats(MediaStreamTrack? selector = null) added.
Tip revision: c1df8c2
File Mode Size
DOMParser-parseFromString-html.html -rw-r--r-- 2.5 KB
DOMParser-parseFromString-xml-doctype.html -rw-r--r-- 1.4 KB
DOMParser-parseFromString-xml-internal-subset.html -rw-r--r-- 1.3 KB
DOMParser-parseFromString-xml.html -rw-r--r-- 2.3 KB
OWNERS -rw-r--r-- 17 bytes
XMLSerializer-serializeToString.html -rw-r--r-- 2.4 KB
createContextualFragment.html -rw-r--r-- 7.5 KB
innerhtml-01.xhtml -rw-r--r-- 1.1 KB
innerhtml-03.xhtml -rw-r--r-- 2.2 KB
innerhtml-04.html -rw-r--r-- 815 bytes
innerhtml-05.xhtml -rw-r--r-- 948 bytes
innerhtml-06.html -rw-r--r-- 493 bytes
innerhtml-07.html -rw-r--r-- 1.5 KB
innerhtml-mxss.sub.html -rw-r--r-- 1.6 KB
insert-adjacent.html -rw-r--r-- 985 bytes
insert_adjacent_html-xhtml.xhtml -rw-r--r-- 3.9 KB
insert_adjacent_html.html -rw-r--r-- 4.2 KB
insert_adjacent_html.js -rw-r--r-- 1.5 KB
outerhtml-01.html -rw-r--r-- 536 bytes
outerhtml-02.html -rw-r--r-- 1.8 KB
style_attribute_html.html -rw-r--r-- 1.9 KB
xml-serialization.xhtml -rw-r--r-- 3.9 KB
xmldomparser.html -rw-r--r-- 384 bytes

back to top