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

Issue 2527113002: Collecting RTCIceCandidatePairStats.transport_id and improved unittests (Closed)

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

Description

Collecting RTCIceCandidatePairStats.transport_id and improved unittests. RTCIceCandidatePairStats.transport_id is set to the related RTCTransportStats' id. Unittest for RTCIceCandidatePairStats is updated to do EXPECT_EQ between actual and an expected hardcoded dictionary. The previous way of testing, ExpectReportContainsCandidatePair, is removed. (ExpectReportContainsCandidate still exist, we might want to replace this by EXPECT_EQ testing in a follow up.) Unittest for RTCTransportStats is similarly updated and ExpectReportContainsTransportStats is removed. A bug was uncovered where the "rtcp_connection_info.best_connection = true" case was not tested (a copy of rtcp_connection_info was used in the test, modifying that had no affect on the test) - fixed. rtcstats_integrationtest.cc updated to take transport_id into account. In order to reuse an updated version of expected_rt[c]p_transport in the unittest, timestamps are ignored by RTCStats::operator==. BUG=chromium:627816, chromium:653873, chromium:653873, webrtc:6755 Committed: https://crrev.com/0583b286e44b6f6d4d5c5185ed94b60f37aad598 Cr-Commit-Position: refs/heads/master@{#15316}

Patch Set 1 #

Total comments: 6

Patch Set 2 : set_timestamp_us removed, RTCStats== ignoring timestamps, unittests updated #

Patch Set 3 : git cl format #

Patch Set 4 : Rebase with master and update rtcstats_integrationtest.cc to include transport_id #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -148 lines) Patch
M webrtc/api/rtcstats_integrationtest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/api/rtcstatscollector.cc View 3 chunks +3 lines, -1 line 0 comments Download
M webrtc/api/rtcstatscollector_unittest.cc View 1 2 3 7 chunks +99 lines, -140 lines 0 comments Download
M webrtc/api/stats/rtcstats.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/api/stats/rtcstats_objects.h View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/stats/rtcstats.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M webrtc/stats/rtcstats_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 39 (23 generated)
hbos
Please take a look, hta and deadbeef.
4 years ago (2016-11-24 11:14:46 UTC) #5
hbos
This TODO was removed when removing ExpectReportContainsTransportStats, do you think I should re-add it at ...
4 years ago (2016-11-24 11:20:11 UTC) #6
hbos
On 2016/11/24 11:20:11, hbos wrote: > This TODO was removed when removing ExpectReportContainsTransportStats, do you ...
4 years ago (2016-11-24 11:20:38 UTC) #7
hta-webrtc
On 2016/11/24 11:20:38, hbos wrote: > On 2016/11/24 11:20:11, hbos wrote: > > This TODO ...
4 years ago (2016-11-28 08:00:20 UTC) #10
hta-webrtc
lgtm apart from the setting-timestamps thing. https://codereview.webrtc.org/2527113002/diff/1/webrtc/api/rtcstatscollector_unittest.cc File webrtc/api/rtcstatscollector_unittest.cc (right): https://codereview.webrtc.org/2527113002/diff/1/webrtc/api/rtcstatscollector_unittest.cc#newcode1682 webrtc/api/rtcstatscollector_unittest.cc:1682: expected_rtp_transport.set_timestamp_us(report->timestamp_us()); Given that ...
4 years ago (2016-11-28 08:14:16 UTC) #11
hbos
Please take a look, deadbeef. https://codereview.webrtc.org/2527113002/diff/1/webrtc/api/rtcstatscollector_unittest.cc File webrtc/api/rtcstatscollector_unittest.cc (right): https://codereview.webrtc.org/2527113002/diff/1/webrtc/api/rtcstatscollector_unittest.cc#newcode1682 webrtc/api/rtcstatscollector_unittest.cc:1682: expected_rtp_transport.set_timestamp_us(report->timestamp_us()); On 2016/11/28 08:14:16, ...
4 years ago (2016-11-28 11:53:51 UTC) #14
Taylor Brandstetter
lgtm
4 years ago (2016-11-29 16:48:39 UTC) #17
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/2527113002/40001
4 years ago (2016-11-29 17:05:50 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_msan on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_msan/builds/15404)
4 years ago (2016-11-29 17:11:02 UTC) #22
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/2527113002/40001
4 years ago (2016-11-29 17:12:22 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_ubsan_vptr on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_ubsan_vptr/builds/7809) mac_rel on master.tryserver.webrtc (JOB_FAILED, ...
4 years ago (2016-11-29 17:14:53 UTC) #26
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/2527113002/60001
4 years ago (2016-11-30 08:45:37 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_msan on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_msan/builds/15436)
4 years ago (2016-11-30 08:58:47 UTC) #32
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/2527113002/60001
4 years ago (2016-11-30 09:39:01 UTC) #34
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-11-30 09:50:19 UTC) #37
commit-bot: I haz the power
4 years ago (2016-11-30 09:50:40 UTC) #39
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0583b286e44b6f6d4d5c5185ed94b60f37aad598
Cr-Commit-Position: refs/heads/master@{#15316}

Powered by Google App Engine
This is Rietveld 408576698