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

Issue 2521663002: RTCStatsIntegrationTest added. (Closed)

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

Description

RTCStatsIntegrationTest added. This is an integration test using peerconnectiontestwrapper.h to set up and end to end test using a real PeerConnection implementation. These tests will complement rtcstatscollector_unittest.cc which collects all stats using mocks. The integration test is set up so that all stats types are returned by GetStats and verifies that expected dictionary members are defined. The test could in the future be updated to include sanity checks for the values of members. There is a sanity check that references to other stats dictionaries yield existing stats of the appropriate type, but other than that members are only tested for if they are defined not. StatsCallback of rtcstatscollector_unittest.cc is moved so that it can be reused and renamed to RTCStatsObtainer. TODO: Audio stream track stats members are missing in the test. Find out if this is because of a real problem or because of testing without real devices. Do this before closing crbug.com/627816. BUG=chromium:627816 Committed: https://crrev.com/db346a7cbe511641e11307dc4cbbc8fc0c323845 Cr-Commit-Position: refs/heads/master@{#15287}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed deadbeef's comments #

Patch Set 3 : Data channels included. Successfully separate audio from video track. TODO for missing audio stats. #

Total comments: 4

Patch Set 4 : Rebase with master #

Patch Set 5 : Addressed nits #

Patch Set 6 : Rebase /w master and taking RTCCodecStats into account #

Unified diffs Side-by-side diffs Delta from patch set Stats (+603 lines, -39 lines) Patch
M webrtc/api/BUILD.gn View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
A webrtc/api/rtcstats_integrationtest.cc View 1 2 3 4 5 1 chunk +537 lines, -0 lines 0 comments Download
M webrtc/api/rtcstatscollector_unittest.cc View 1 2 3 4 5 6 chunks +9 lines, -39 lines 0 comments Download
M webrtc/api/test/peerconnectiontestwrapper.h View 1 chunk +2 lines, -0 lines 0 comments Download
A webrtc/api/test/rtcstatsobtainer.h View 1 chunk +53 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (29 generated)
hbos
Please take a look deadbeef and hta. I'm a little bit worried about the testability ...
4 years, 1 month ago (2016-11-21 18:40:20 UTC) #8
hbos
(Note: The "TestMemberIs[Defined/Undefined]" tests are based on the current implementation where a lot of stats ...
4 years, 1 month ago (2016-11-21 18:43:36 UTC) #9
Taylor Brandstetter
Looks really good, I like how you went about this. The only question I have ...
4 years, 1 month ago (2016-11-22 10:02:32 UTC) #10
hbos
PTAL deadbeef and hta. On 2016/11/22 10:02:32, Taylor Brandstetter wrote: > Looks really good, I ...
4 years, 1 month ago (2016-11-22 14:19:27 UTC) #13
hbos
Note: I have yet to make the test include RTCDataChannelStats or investigates what's up with ...
4 years, 1 month ago (2016-11-22 14:22:30 UTC) #14
hbos
PTAL. CL updated, no blocking TODOs IMO. It turns out the audio stream track had ...
4 years, 1 month ago (2016-11-22 15:26:58 UTC) #19
hta-webrtc
lgtm, the usual flurry of nits. https://codereview.webrtc.org/2521663002/diff/40001/webrtc/api/rtcstats_integrationtest.cc File webrtc/api/rtcstats_integrationtest.cc (right): https://codereview.webrtc.org/2521663002/diff/40001/webrtc/api/rtcstats_integrationtest.cc#newcode90 webrtc/api/rtcstats_integrationtest.cc:90: rtc::scoped_refptr<const RTCStatsReport> CallerGetStats() ...
4 years, 1 month ago (2016-11-23 07:52:11 UTC) #24
hbos
PTAL beefy https://codereview.webrtc.org/2521663002/diff/40001/webrtc/api/rtcstats_integrationtest.cc File webrtc/api/rtcstats_integrationtest.cc (right): https://codereview.webrtc.org/2521663002/diff/40001/webrtc/api/rtcstats_integrationtest.cc#newcode90 webrtc/api/rtcstats_integrationtest.cc:90: rtc::scoped_refptr<const RTCStatsReport> CallerGetStats() { On 2016/11/23 07:52:11, ...
4 years ago (2016-11-23 09:55:49 UTC) #27
Taylor Brandstetter
lgtm As for naming the test, I prefer this naming scheme ("X_integrationtest") to our existing ...
4 years ago (2016-11-28 22:23:13 UTC) #30
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/2521663002/80001
4 years ago (2016-11-29 08:52:04 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: mac_asan on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_asan/builds/19795)
4 years ago (2016-11-29 08:55:54 UTC) #35
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/2521663002/100001
4 years ago (2016-11-29 09:27:47 UTC) #38
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-11-29 09:57:05 UTC) #41
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/db346a7cbe511641e11307dc4cbbc8fc0c323845 Cr-Commit-Position: refs/heads/master@{#15287}
4 years ago (2016-11-29 09:57:17 UTC) #43
ossu
4 years ago (2016-11-29 13:41:02 UTC) #44
Message was sent while issue was closed.
On 2016/11/29 09:57:17, commit-bot: I haz the power wrote:
> Patchset 6 (id:??) landed as
> https://crrev.com/db346a7cbe511641e11307dc4cbbc8fc0c323845
> Cr-Commit-Position: refs/heads/master@{#15287}

It seems this test is continuously failing on the linux memcheck bot. I've
created a bug for it here:
https://bugs.chromium.org/p/webrtc/issues/detail?id=6794

Powered by Google App Engine
This is Rietveld 408576698