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

Issue 2472113002: Correct stats for RTCPeerConnectionStats.dataChannels[Opened/Closed]. (Closed)

Created:
4 years, 1 month ago by hbos
Modified:
4 years, 1 month ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Correct stats for RTCPeerConnectionStats.dataChannels[Opened/Closed]. DataChannel.SignalOpened and unittests added. PeerConnection.SignalDataChannelCreated added and wired up to RTCStatsCollector.OnDataChannelCreated on RTCStatsCollector construction. RTCStatsCollector.OnSignalOpened/Closed added and wired up on OnDataChannelCreated. rtcstatscollector_unittest.cc updated, faking that channels are opened and closed. I did not want to use DataChannelObserver because it is used for more than state changes and there can only be one observer (unless code is updated). Since DataChannel already had a SignalClosed it made sense to add a SignalOpened. Having OnSignalBlah in RTCStatsCollector is new in this CL but will likely be needed to correctly handle RTPMediaStreamTracks being added and detached independently of getStats. This CL establishes this pattern. (An integration test will be needed for this and all the other stats to make sure everything is wired up correctly and test outside of a mock/fake environment, but this is not news.) BUG=chromium:636818, chromium:627816 Committed: https://crrev.com/82ebe02491d066697717ae386f886b752729e013 Cr-Commit-Position: refs/heads/master@{#15059}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Addressed hta's comments #

Total comments: 3

Patch Set 3 : Addressed deadbeef's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -50 lines) Patch
M webrtc/api/datachannel.h View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/api/datachannel.cc View 1 chunk +3 lines, -1 line 0 comments Download
M webrtc/api/datachannel_unittest.cc View 2 chunks +29 lines, -0 lines 0 comments Download
M webrtc/api/peerconnection.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/api/peerconnection.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/api/rtcstatscollector.h View 1 2 4 chunks +30 lines, -1 line 0 comments Download
M webrtc/api/rtcstatscollector.cc View 1 2 3 chunks +28 lines, -15 lines 0 comments Download
M webrtc/api/rtcstatscollector_unittest.cc View 1 2 1 chunk +45 lines, -33 lines 0 comments Download

Messages

Total messages: 25 (13 generated)
hbos
Please take a look, hta and deadbeef
4 years, 1 month ago (2016-11-03 12:48:06 UTC) #3
hta-webrtc
lgtm with commentary, most of which can be addressed by adding comments. https://codereview.webrtc.org/2472113002/diff/20001/webrtc/api/rtcstatscollector.cc File webrtc/api/rtcstatscollector.cc ...
4 years, 1 month ago (2016-11-03 13:49:58 UTC) #4
hbos
Please take a look, deadbeef. https://codereview.webrtc.org/2472113002/diff/20001/webrtc/api/rtcstatscollector.cc File webrtc/api/rtcstatscollector.cc (right): https://codereview.webrtc.org/2472113002/diff/20001/webrtc/api/rtcstatscollector.cc#newcode670 webrtc/api/rtcstatscollector.cc:670: ++data_channels_opened_; On 2016/11/03 13:49:58, ...
4 years, 1 month ago (2016-11-03 15:02:02 UTC) #5
hbos
Ping deadbeef
4 years, 1 month ago (2016-11-08 14:28:49 UTC) #6
Taylor Brandstetter
Sorry for the delay in reviewing; I've been a little behind. https://codereview.webrtc.org/2472113002/diff/20001/webrtc/api/rtcstatscollector.cc File webrtc/api/rtcstatscollector.cc (right): ...
4 years, 1 month ago (2016-11-09 00:32:48 UTC) #7
hbos
PTAL deadbeef On 2016/11/09 00:32:48, Taylor Brandstetter wrote: > Sorry for the delay in reviewing; ...
4 years, 1 month ago (2016-11-11 09:52:02 UTC) #8
Taylor Brandstetter
lgtm https://codereview.webrtc.org/2472113002/diff/40001/webrtc/api/peerconnection.cc File webrtc/api/peerconnection.cc (right): https://codereview.webrtc.org/2472113002/diff/40001/webrtc/api/peerconnection.cc#newcode2083 webrtc/api/peerconnection.cc:2083: &RTCStatsCollector::OnDataChannelOpened); On 2016/11/11 09:52:02, hbos wrote: > On ...
4 years, 1 month ago (2016-11-11 20:54:53 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2472113002/60001
4 years, 1 month ago (2016-11-14 08:57:17 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_clang_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_clang_dbg/builds/8226)
4 years, 1 month ago (2016-11-14 09:12:46 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2472113002/60001
4 years, 1 month ago (2016-11-14 09:18:39 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 1 month ago (2016-11-14 09:41:14 UTC) #23
commit-bot: I haz the power
4 years, 1 month ago (2016-11-14 09:42:04 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/82ebe02491d066697717ae386f886b752729e013
Cr-Commit-Position: refs/heads/master@{#15059}

Powered by Google App Engine
This is Rietveld 408576698