DescriptionWebRTCStats added, retaining type info when surfacing WebRTC stats into Blink.
Previously RTCStatsResponseBase and impls had addReport and addStatistic
methods, adding stats as string key-string value pairs. These are replaced by
addStats(const WebRTCStats&). WebRTCStats describe a stats report and has a
member iterator.
The members' names and values can be converted to strings and be used like
addReport and addStatistic was previously used. RTCStatsResponse still uses this
functionality.
Additionally, the members are described with type information and has getters
for each type. The WebRTCStatsType and WebRTCStatsMemberName enums will be used
to identify individual stats. In follow-up CLs where .idl dictionaries are added
for each RTCStats in the spec, the member and type information will be used to
translate WebRTCStats into RTCStats-derived dictionaries.
Existing getStats tests use mocking. (blink_tests' RTCPeerConnection-stats.html
use a mock WebRTCPeerConnectionHandler, content_unittests'
RTCPeerConnectionHandlerTest.GetStats* use a mock LocalRTCStatsRequest). This CL
adds a getStats browser_tests that make sure getStats can be called and result
iterated without mocking components (integration test).
BUG=627816
Committed: https://crrev.com/36e436520d6835e4f4c48d0ab57b837197104d1d
Cr-Commit-Position: refs/heads/master@{#408957}
Patch Set 1 #Patch Set 2 : Fixed mock peer connection handler #Patch Set 3 : Member virtual valueX() for each member type (except ID) #Patch Set 4 : Updated peerconnection.js (re-running trybots can wait, will need to rebase with master) #
Total comments: 8
Patch Set 5 : Rebase with master #Patch Set 6 : Addressed phoglund's comments #
Total comments: 8
Patch Set 7 : Addressed tommi's comments #Messages
Total messages: 41 (26 generated)
|