Extend RTCIceCandidateStats with non-standard network_adapter_type

This cl/ extends the RTCIceCandidateStats object with
network_adapter_type and vpn, so that it maps the underlying
WebRTC objects completly.

Bug: webrtc:13773
Change-Id: I5cf79972c60ca6bf2a127dc96fa90811263ba6fd
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/253241
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Jonas Oreland <jonaso@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#36110}
This commit is contained in:
Jonas Oreland
2022-03-02 11:17:36 +01:00
committed by WebRTC LUCI CQ
parent f08e2663aa
commit 0d13bbd4b1
7 changed files with 105 additions and 11 deletions

View File

@ -277,7 +277,9 @@ WEBRTC_RTCSTATS_IMPL(RTCIceCandidateStats, RTCStats, "abstract-ice-candidate",
&relay_protocol,
&candidate_type,
&priority,
&url)
&url,
&vpn,
&network_adapter_type)
// clang-format on
RTCIceCandidateStats::RTCIceCandidateStats(const std::string& id,
@ -299,7 +301,9 @@ RTCIceCandidateStats::RTCIceCandidateStats(std::string&& id,
relay_protocol("relayProtocol"),
candidate_type("candidateType"),
priority("priority"),
url("url") {}
url("url"),
vpn("vpn"),
network_adapter_type("networkAdapterType") {}
RTCIceCandidateStats::RTCIceCandidateStats(const RTCIceCandidateStats& other)
: RTCStats(other.id(), other.timestamp_us()),
@ -313,7 +317,9 @@ RTCIceCandidateStats::RTCIceCandidateStats(const RTCIceCandidateStats& other)
relay_protocol(other.relay_protocol),
candidate_type(other.candidate_type),
priority(other.priority),
url(other.url) {}
url(other.url),
vpn(other.vpn),
network_adapter_type(other.network_adapter_type) {}
RTCIceCandidateStats::~RTCIceCandidateStats() {}