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

Issue 2838233002: Add PeerConnectionInterface::UpdateCallBitrate with call tests. (Closed)

Created:
3 years, 8 months ago by Zach Stein
Modified:
3 years, 6 months ago
CC:
webrtc-reviews_webrtc.org, the sun, tterriberry_mozilla.com, stefan-webrtc, mflodman
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add PeerConnectionInterface::UpdateCallBitrate with call tests. Subsumed by https://codereview.chromium.org/2888303005/ BUG=webrtc:7395

Patch Set 1 #

Total comments: 17

Patch Set 2 : Style/test coverage feedback. No clamping yet. #

Total comments: 5

Patch Set 3 : Add tests and clamping code from Taylor and make the tests pass. #

Patch Set 4 : Update min/start test coverage and tweak some comments. #

Patch Set 5 : Make Call::SetBitrateConfigMask void (it was always returning ok). #

Patch Set 6 : Update PC test - this is okay now that we clamp. #

Total comments: 9

Patch Set 7 : Only update start from SetBitrateConfig when it changes; some comments and logging. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+519 lines, -49 lines) Patch
M webrtc/api/peerconnectioninterface.h View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M webrtc/api/peerconnectionproxy.h View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/audio/audio_send_stream_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webrtc/call/call.h View 1 2 3 4 3 chunks +22 lines, -4 lines 0 comments Download
M webrtc/call/call.cc View 1 2 3 4 5 6 5 chunks +123 lines, -19 lines 2 comments Download
M webrtc/call/call_unittest.cc View 1 2 3 4 1 chunk +233 lines, -22 lines 0 comments Download
M webrtc/call/fake_rtp_transport_controller_send.h View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M webrtc/media/engine/fakewebrtccall.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/media/engine/fakewebrtccall.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/pc/peerconnection.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/pc/peerconnection.cc View 1 2 3 4 1 chunk +48 lines, -0 lines 0 comments Download
M webrtc/pc/peerconnectioninterface_unittest.cc View 1 2 3 4 5 6 1 chunk +63 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
Taylor_Brandstetter
Approach to testing seems good, I just have some more comments about the code and ...
3 years, 8 months ago (2017-04-26 15:46:11 UTC) #2
Zach Stein
https://codereview.webrtc.org/2838233002/diff/1/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/2838233002/diff/1/webrtc/call/call.cc#newcode1027 webrtc/call/call.cc:1027: } On 2017/04/26 15:46:11, Taylor_Brandstetter wrote: > I still ...
3 years, 7 months ago (2017-05-04 22:32:44 UTC) #3
Taylor Brandstetter
https://codereview.webrtc.org/2838233002/diff/1/webrtc/call/call_unittest.cc File webrtc/call/call_unittest.cc (right): https://codereview.webrtc.org/2838233002/diff/1/webrtc/call/call_unittest.cc#newcode428 webrtc/call/call_unittest.cc:428: TEST_F(CallBitrateTest, MaskStartLessThanConfigMinFails) { On 2017/05/04 22:32:43, Zach Stein wrote: ...
3 years, 7 months ago (2017-05-05 08:04:32 UTC) #5
Zach Stein
https://codereview.webrtc.org/2838233002/diff/1/webrtc/call/call_unittest.cc File webrtc/call/call_unittest.cc (right): https://codereview.webrtc.org/2838233002/diff/1/webrtc/call/call_unittest.cc#newcode428 webrtc/call/call_unittest.cc:428: TEST_F(CallBitrateTest, MaskStartLessThanConfigMinFails) { On 2017/05/05 08:04:32, Taylor Brandstetter wrote: ...
3 years, 7 months ago (2017-05-09 00:41:26 UTC) #6
Taylor Brandstetter
https://codereview.webrtc.org/2838233002/diff/1/webrtc/call/call_unittest.cc File webrtc/call/call_unittest.cc (right): https://codereview.webrtc.org/2838233002/diff/1/webrtc/call/call_unittest.cc#newcode428 webrtc/call/call_unittest.cc:428: TEST_F(CallBitrateTest, MaskStartLessThanConfigMinFails) { On 2017/05/09 00:41:26, Zach Stein wrote: ...
3 years, 7 months ago (2017-05-09 15:51:54 UTC) #7
Zach Stein
Here is the next version with all of the tests I have passing.
3 years, 7 months ago (2017-05-09 23:03:21 UTC) #8
Taylor Brandstetter
https://codereview.webrtc.org/2838233002/diff/100001/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/2838233002/diff/100001/webrtc/call/call.cc#newcode901 webrtc/call/call.cc:901: min > *bitrate_config_mask_.min_bitrate_bps) { The code would be simpler ...
3 years, 7 months ago (2017-05-11 04:16:15 UTC) #9
Zach Stein
https://codereview.webrtc.org/2838233002/diff/100001/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/2838233002/diff/100001/webrtc/call/call.cc#newcode901 webrtc/call/call.cc:901: min > *bitrate_config_mask_.min_bitrate_bps) { On 2017/05/11 04:16:15, Taylor Brandstetter ...
3 years, 7 months ago (2017-05-11 21:43:09 UTC) #10
Taylor Brandstetter
https://codereview.webrtc.org/2838233002/diff/100001/webrtc/pc/peerconnectioninterface_unittest.cc File webrtc/pc/peerconnectioninterface_unittest.cc (right): https://codereview.webrtc.org/2838233002/diff/100001/webrtc/pc/peerconnectioninterface_unittest.cc#newcode3352 webrtc/pc/peerconnectioninterface_unittest.cc:3352: TEST_F(PeerConnectionInterfaceTest, SetBitrateCurrentLessThanSdpMin) { On 2017/05/11 21:43:09, Zach Stein wrote: ...
3 years, 7 months ago (2017-05-11 23:14:08 UTC) #11
Zach Stein
3 years, 7 months ago (2017-05-23 20:58:53 UTC) #12
https://codereview.webrtc.org/2838233002/diff/120001/webrtc/call/call.cc
File webrtc/call/call.cc (right):

https://codereview.webrtc.org/2838233002/diff/120001/webrtc/call/call.cc#newc...
webrtc/call/call.cc:956: << "nothing to update";
On 2017/05/11 23:14:08, Taylor Brandstetter wrote:
> This could be spammy if it happens for every SDP offer/answer; can you change
it
> to LS_VERBOSE?

Done.

Powered by Google App Engine
This is Rietveld 408576698