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
bodiesTargets
specificResource
.gitignore -rw-r--r-- 0 bytes
3.1-annotationContextValidated.json -rw-r--r-- 920 bytes
3.1-annotationIdValidated.json -rw-r--r-- 644 bytes
3.1-annotationTypeValidated.json -rw-r--r-- 555 bytes
3.1-bodyKeyFound.json -rw-r--r-- 472 bytes
3.1-targetKeyFound.json -rw-r--r-- 489 bytes
3.2-bodyObjectsRecognized.json -rw-r--r-- 1.2 KB
3.2-targetObjectsRecognized.json -rw-r--r-- 1.1 KB
3.2.5-bodyValueImplemented.json -rw-r--r-- 651 bytes
3.2.5-bodyValueValidated.json -rw-r--r-- 710 bytes
3.2.5-notBodyBodyValue.json -rw-r--r-- 658 bytes
3.3.1-annotationCreatedImplemented.json -rw-r--r-- 740 bytes
3.3.1-annotationCreatedValidated.json -rw-r--r-- 797 bytes
3.3.1-annotationCreatorImplemented.json -rw-r--r-- 689 bytes
3.3.1-annotationGeneratedImplemented.json -rw-r--r-- 754 bytes
3.3.1-annotationGeneratedValidated.json -rw-r--r-- 811 bytes
3.3.1-annotationGeneratorImplemented.json -rw-r--r-- 702 bytes
3.3.1-annotationModifiedImplemented.json -rw-r--r-- 748 bytes
3.3.1-annotationModifiedValidated.json -rw-r--r-- 804 bytes
3.3.1-annotationSingleCreatorImplemented.json -rw-r--r-- 612 bytes
3.3.1-singleAnnotationCreatorImplemented.json -rw-r--r-- 556 bytes
3.3.2-annotationCreatorAgentEmailImplemented.json -rw-r--r-- 984 bytes
3.3.2-annotationCreatorAgentEmail_sha1Implemented.json -rw-r--r-- 981 bytes
3.3.2-annotationCreatorAgentHomepageImplemented.json -rw-r--r-- 1014 bytes
3.3.2-annotationCreatorAgentIdImplemented.json -rw-r--r-- 955 bytes
3.3.2-annotationCreatorAgentNameImplemented.json -rw-r--r-- 941 bytes
3.3.2-annotationCreatorAgentNicknameImplemented.json -rw-r--r-- 1000 bytes
3.3.2-annotationCreatorAgentSingleNameImplemented.json -rw-r--r-- 985 bytes
3.3.2-annotationCreatorAgentTypeImplemented.json -rw-r--r-- 1.0 KB
3.3.2-annotationGeneratorAgentEmailImplemented.json -rw-r--r-- 996 bytes
3.3.2-annotationGeneratorAgentEmail_sha1Implemented.json -rw-r--r-- 993 bytes
3.3.2-annotationGeneratorAgentHomepageImplemented.json -rw-r--r-- 1.0 KB
3.3.2-annotationGeneratorAgentIdImplemented.json -rw-r--r-- 967 bytes
3.3.2-annotationGeneratorAgentNameImplemented.json -rw-r--r-- 952 bytes
3.3.2-annotationGeneratorAgentNicknameImplemented.json -rw-r--r-- 1012 bytes
3.3.2-annotationGeneratorAgentSingleNameImplemented.json -rw-r--r-- 997 bytes
3.3.2-annotationGeneratorAgentTypeImplemented.json -rw-r--r-- 1.0 KB
3.3.3-annotationAudienceImplemented.json -rw-r--r-- 753 bytes
3.3.5-annotationMotivationImplemented.json -rw-r--r-- 828 bytes
3.3.5-annotationSingleMotivationImplemented.json -rw-r--r-- 780 bytes
3.3.6-annotationRightsImplemented.json -rw-r--r-- 787 bytes
3.3.6-annotationRightsValidated.json -rw-r--r-- 755 bytes
3.3.7-annotationCanonicalImplemented.json -rw-r--r-- 782 bytes
3.3.7-annotationCanonicalValidated.json -rw-r--r-- 793 bytes
3.3.7-annotationViaImplemented.json -rw-r--r-- 778 bytes
3.3.7-annotationViaValidated.json -rw-r--r-- 707 bytes
4.4-annotationStylesheetImplemented.json -rw-r--r-- 751 bytes
annotationMusts-manual.html -rw-r--r-- 1.7 KB
annotationMusts.test -rw-r--r-- 4.0 KB
annotationOptionals-manual.html -rw-r--r-- 1.7 KB
annotationOptionals.test -rw-r--r-- 4.9 KB
annotationsAgentOptionals-manual.html -rw-r--r-- 1.7 KB
annotationsAgentOptionals.test -rw-r--r-- 3.4 KB

back to top