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

Issue 1390753002: Implement AudioReceiveStream::GetStats(). (Closed)

Created:
5 years, 2 months ago by the sun
Modified:
5 years, 2 months ago
Reviewers:
tommi, hta-webrtc
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, rwolff_gocast.it, yujie_mao (webrtc), Andrew MacDonald, tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc, kwiberg-webrtc, tlegrand-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Re-Land: Implement AudioReceiveStream::GetStats(). R=tommi@webrtc.org BUG=webrtc:4690 Committed: https://chromium.googlesource.com/external/webrtc/+/a457752f4afc496ed7f4d6b584b08d8635f18cc0 Committed: https://crrev.com/4f4ec0a9270a8cefadfa12e9fa3b979b58b15392 Cr-Commit-Position: refs/heads/master@{#10369}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : merge #

Patch Set 4 : wvoe stats test enabled again #

Patch Set 5 : added unittest #

Patch Set 6 : remaining VoE interfaces #

Patch Set 7 : always set remote_ssrc in returned stats #

Patch Set 8 : rebase #

Patch Set 9 : rebase #

Patch Set 10 : fix compile errors #

Patch Set 11 : a bit better #

Patch Set 12 : speling #

Patch Set 13 : rebase #

Total comments: 59

Patch Set 14 : comments #

Patch Set 15 : one space #

Total comments: 1

Patch Set 16 : rebase #

Patch Set 17 : rebaes #

Patch Set 18 : removed unorthogonal bit of getstats test cases #

Patch Set 19 : rebase #

Total comments: 17

Patch Set 20 : fix call_perf_tests #

Patch Set 21 : comments #

Patch Set 22 : one s #

Total comments: 2

Patch Set 23 : merge master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+873 lines, -258 lines) Patch
M talk/media/webrtc/fakewebrtccall.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +7 lines, -4 lines 0 comments Download
M talk/media/webrtc/fakewebrtccall.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +5 lines, -4 lines 0 comments Download
M talk/media/webrtc/fakewebrtcvoiceengine.h View 1 5 chunks +3 lines, -67 lines 0 comments Download
M talk/media/webrtc/webrtcvoe.h View 5 chunks +2 lines, -14 lines 0 comments Download
M talk/media/webrtc/webrtcvoiceengine.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 5 chunks +34 lines, -75 lines 0 comments Download
M talk/media/webrtc/webrtcvoiceengine_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 6 chunks +98 lines, -60 lines 0 comments Download
M webrtc/audio/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/audio/audio_receive_stream.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +10 lines, -1 line 0 comments Download
M webrtc/audio/audio_receive_stream.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +102 lines, -4 lines 0 comments Download
M webrtc/audio/audio_receive_stream_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +72 lines, -8 lines 0 comments Download
A + webrtc/audio/conversion.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +8 lines, -6 lines 0 comments Download
A webrtc/audio/scoped_voe_interface.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +45 lines, -0 lines 0 comments Download
M webrtc/audio/webrtc_audio.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/audio_receive_stream.h View 1 chunk +26 lines, -1 line 0 comments Download
M webrtc/call/bitrate_estimator_tests.cc View 1 2 3 4 3 chunks +6 lines, -2 lines 0 comments Download
M webrtc/call/call.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 5 chunks +13 lines, -9 lines 0 comments Download
M webrtc/call/call_perf_tests.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/call/call_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M webrtc/test/call_test.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/test/call_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +5 lines, -0 lines 0 comments Download
A webrtc/test/fake_voice_engine.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +421 lines, -0 lines 0 comments Download
M webrtc/test/webrtc_test_common.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/voice_engine/voice_engine_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 34 (14 generated)
the sun
5 years, 2 months ago (2015-10-19 10:49:58 UTC) #2
tommi
drive by as a getstats enthusiast https://codereview.webrtc.org/1390753002/diff/240001/talk/media/webrtc/webrtcvoiceengine.cc File talk/media/webrtc/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/1390753002/diff/240001/talk/media/webrtc/webrtcvoiceengine.cc#newcode2772 talk/media/webrtc/webrtcvoiceengine.cc:2772: rinfo.add_ssrc(stats.remote_ssrc); What do ...
5 years, 2 months ago (2015-10-19 12:36:24 UTC) #4
the sun
Thanks for the drive-by. It's great with enthusiasts! https://codereview.webrtc.org/1390753002/diff/240001/talk/media/webrtc/webrtcvoiceengine.cc File talk/media/webrtc/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/1390753002/diff/240001/talk/media/webrtc/webrtcvoiceengine.cc#newcode2772 talk/media/webrtc/webrtcvoiceengine.cc:2772: rinfo.add_ssrc(stats.remote_ssrc); ...
5 years, 2 months ago (2015-10-19 14:25:03 UTC) #6
tommi
lgtm - thanks for doing all the changes https://codereview.webrtc.org/1390753002/diff/240001/talk/media/webrtc/webrtcvoiceengine.cc File talk/media/webrtc/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/1390753002/diff/240001/talk/media/webrtc/webrtcvoiceengine.cc#newcode2772 talk/media/webrtc/webrtcvoiceengine.cc:2772: rinfo.add_ssrc(stats.remote_ssrc); ...
5 years, 2 months ago (2015-10-19 14:55:44 UTC) #7
the sun
https://codereview.webrtc.org/1390753002/diff/240001/talk/media/webrtc/webrtcvoiceengine.cc File talk/media/webrtc/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/1390753002/diff/240001/talk/media/webrtc/webrtcvoiceengine.cc#newcode2772 talk/media/webrtc/webrtcvoiceengine.cc:2772: rinfo.add_ssrc(stats.remote_ssrc); On 2015/10/19 14:55:44, tommi (webrtc) wrote: > On ...
5 years, 2 months ago (2015-10-20 08:31:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1390753002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1390753002/340001
5 years, 2 months ago (2015-10-20 11:18:59 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/1316)
5 years, 2 months ago (2015-10-20 11:28:05 UTC) #16
commit-bot: I haz the power
Patchset 19 (id:??) landed as https://crrev.com/a457752f4afc496ed7f4d6b584b08d8635f18cc0 Cr-Commit-Position: refs/heads/master@{#10338}
5 years, 2 months ago (2015-10-20 13:02:15 UTC) #17
the sun
Committed patchset #19 (id:360001) manually as a457752f4afc496ed7f4d6b584b08d8635f18cc0 (presubmit successful).
5 years, 2 months ago (2015-10-20 13:02:29 UTC) #18
the sun
A revert of this CL (patchset #19 id:360001) has been created in https://codereview.webrtc.org/1411083006/ by solenberg@webrtc.org. ...
5 years, 2 months ago (2015-10-20 13:40:47 UTC) #19
hta-webrtc
Had a few comments. Main problem in reviewing for me is that the design and ...
5 years, 2 months ago (2015-10-20 21:29:00 UTC) #22
the sun
https://codereview.webrtc.org/1390753002/diff/360001/webrtc/audio/audio_receive_stream_unittest.cc File webrtc/audio/audio_receive_stream_unittest.cc (right): https://codereview.webrtc.org/1390753002/diff/360001/webrtc/audio/audio_receive_stream_unittest.cc#newcode66 webrtc/audio/audio_receive_stream_unittest.cc:66: FakeVoiceEngine fve; On 2015/10/20 21:29:00, hta-webrtc wrote: > My ...
5 years, 2 months ago (2015-10-20 22:44:16 UTC) #23
Andrew MacDonald
Drive-by. https://codereview.webrtc.org/1390753002/diff/360001/webrtc/audio/conversion.h File webrtc/audio/conversion.h (right): https://codereview.webrtc.org/1390753002/diff/360001/webrtc/audio/conversion.h#newcode16 webrtc/audio/conversion.h:16: inline float Q14ToFloat(uint16_t v) { On 2015/10/20 22:44:16, ...
5 years, 2 months ago (2015-10-20 22:59:57 UTC) #25
tommi
https://codereview.webrtc.org/1390753002/diff/360001/webrtc/audio/audio_receive_stream_unittest.cc File webrtc/audio/audio_receive_stream_unittest.cc (right): https://codereview.webrtc.org/1390753002/diff/360001/webrtc/audio/audio_receive_stream_unittest.cc#newcode66 webrtc/audio/audio_receive_stream_unittest.cc:66: FakeVoiceEngine fve; On 2015/10/20 22:44:16, the sun wrote: > ...
5 years, 2 months ago (2015-10-21 07:35:08 UTC) #26
the sun
https://codereview.webrtc.org/1390753002/diff/360001/webrtc/audio/audio_receive_stream_unittest.cc File webrtc/audio/audio_receive_stream_unittest.cc (right): https://codereview.webrtc.org/1390753002/diff/360001/webrtc/audio/audio_receive_stream_unittest.cc#newcode66 webrtc/audio/audio_receive_stream_unittest.cc:66: FakeVoiceEngine fve; On 2015/10/20 21:29:00, hta-webrtc wrote: > My ...
5 years, 2 months ago (2015-10-21 08:29:13 UTC) #27
the sun
https://codereview.webrtc.org/1390753002/diff/420001/talk/media/webrtc/webrtcvoiceengine_unittest.cc File talk/media/webrtc/webrtcvoiceengine_unittest.cc (right): https://codereview.webrtc.org/1390753002/diff/420001/talk/media/webrtc/webrtcvoiceengine_unittest.cc#newcode2051 talk/media/webrtc/webrtcvoiceengine_unittest.cc:2051: EXPECT_EQ(kSsrcs4[i], info.senders[i].ssrc()); Q: hta@, is there any order requirement ...
5 years, 2 months ago (2015-10-21 14:31:19 UTC) #29
Andrew MacDonald
https://codereview.webrtc.org/1390753002/diff/360001/webrtc/audio/conversion.h File webrtc/audio/conversion.h (right): https://codereview.webrtc.org/1390753002/diff/360001/webrtc/audio/conversion.h#newcode16 webrtc/audio/conversion.h:16: inline float Q14ToFloat(uint16_t v) { On 2015/10/21 08:29:13, the ...
5 years, 2 months ago (2015-10-21 18:15:58 UTC) #30
the sun
Committed patchset #23 (id:440001) manually as 4f4ec0a9270a8cefadfa12e9fa3b979b58b15392 (presubmit successful).
5 years, 2 months ago (2015-10-22 08:49:44 UTC) #32
commit-bot: I haz the power
Patchset 23 (id:??) landed as https://crrev.com/4f4ec0a9270a8cefadfa12e9fa3b979b58b15392 Cr-Commit-Position: refs/heads/master@{#10369}
5 years, 2 months ago (2015-10-22 08:49:49 UTC) #33
hta-webrtc
5 years, 2 months ago (2015-10-22 10:57:28 UTC) #34
Message was sent while issue was closed.
Reply to issue about ordering.

https://codereview.webrtc.org/1390753002/diff/420001/talk/media/webrtc/webrtc...
File talk/media/webrtc/webrtcvoiceengine_unittest.cc (right):

https://codereview.webrtc.org/1390753002/diff/420001/talk/media/webrtc/webrtc...
talk/media/webrtc/webrtcvoiceengine_unittest.cc:2051: EXPECT_EQ(kSsrcs4[i],
info.senders[i].ssrc());
On 2015/10/21 14:31:19, the sun wrote:
> Q: hta@, is there any order requirement on the returned stats?
> 
> This test enforces one of two possible orderings: creation order or
> increasing-ssrc order. Unclear which one is intended.

The JS API interface was created to be oblivious to order; any order is legal.
So this test, by testing that the SSRCs occur in a specific order, will test
something that statscollector.cc doesn't depend on.

Ideally, one would look up each SSRC by value in info.senders, and verify that
the number of SSRCs was correct - this would be testing to the contract rather
than testing to the implementation.

Your call on whether to do it that way.

Powered by Google App Engine
This is Rietveld 408576698