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

Issue 2834663003: Allow mocking SendSideCongestionController for Call tests. (Closed)

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

Description

This will allow me to test that Call invokes SendSideCongestionController::SetBweBitrates as expected (for https://codereview.chromium.org/2793913008). FakeRtpTransportController moves to a common header and its constructor is changed to take a SendSideCongestionController to enable injecting the mock. BUG=webrtc:7395 Review-Url: https://codereview.webrtc.org/2834663003 Cr-Commit-Position: refs/heads/master@{#18055} Committed: https://chromium.googlesource.com/external/webrtc/+/7cb69d5cc71a496b0e9372001ddd22f471d4d076

Patch Set 1 #

Patch Set 2 : Move FakeRtpTransportControllerSend to its own file and add MockSendSideCongestionController. #

Patch Set 3 : Add MockSendSideCongestionController constructor #

Total comments: 8

Patch Set 4 : Replace observer argument and add a motivating example for MockSendSideCC. #

Total comments: 11

Patch Set 5 : Minor naming/style changes from CR. #

Total comments: 2

Patch Set 6 : fix gn check errors #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -52 lines) Patch
M webrtc/audio/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/audio/audio_send_stream_unittest.cc View 1 2 3 4 5 6 4 chunks +14 lines, -31 lines 0 comments Download
M webrtc/call/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/call/call.h View 1 2 3 3 chunks +7 lines, -0 lines 0 comments Download
M webrtc/call/call.cc View 1 2 3 4 chunks +13 lines, -7 lines 0 comments Download
M webrtc/call/call_unittest.cc View 1 2 3 4 2 chunks +28 lines, -0 lines 0 comments Download
A webrtc/call/fake_rtp_transport_controller_send.h View 1 2 3 4 1 chunk +48 lines, -0 lines 0 comments Download
M webrtc/call/rtp_transport_controller_send.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M webrtc/call/rtp_transport_controller_send.cc View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M webrtc/modules/congestion_controller/BUILD.gn View 1 2 3 4 5 2 chunks +13 lines, -0 lines 0 comments Download
M webrtc/modules/congestion_controller/include/congestion_controller.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/congestion_controller/include/mock/mock_congestion_observer.h View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
A webrtc/modules/congestion_controller/include/mock/mock_send_side_congestion_controller.h View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
M webrtc/modules/congestion_controller/include/send_side_congestion_controller.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 24 (10 generated)
Zach Stein
PTAL. I noticed some of these files changed recently, so let me know if I ...
3 years, 8 months ago (2017-04-25 23:16:31 UTC) #4
nisse-webrtc
https://codereview.webrtc.org/2834663003/diff/40001/webrtc/modules/congestion_controller/BUILD.gn File webrtc/modules/congestion_controller/BUILD.gn (right): https://codereview.webrtc.org/2834663003/diff/40001/webrtc/modules/congestion_controller/BUILD.gn#newcode104 webrtc/modules/congestion_controller/BUILD.gn:104: rtc_source_set("mock_send_side_congestion_controller") { Are there any naming conventions for this ...
3 years, 8 months ago (2017-04-26 07:37:15 UTC) #5
Zach Stein
Thanks for the feedback nisse! https://codereview.webrtc.org/2834663003/diff/40001/webrtc/modules/congestion_controller/BUILD.gn File webrtc/modules/congestion_controller/BUILD.gn (right): https://codereview.webrtc.org/2834663003/diff/40001/webrtc/modules/congestion_controller/BUILD.gn#newcode104 webrtc/modules/congestion_controller/BUILD.gn:104: rtc_source_set("mock_send_side_congestion_controller") { On 2017/04/26 ...
3 years, 8 months ago (2017-04-26 20:39:53 UTC) #6
Zach Stein
3 years, 8 months ago (2017-04-26 21:58:54 UTC) #7
Stefan
https://codereview.webrtc.org/2834663003/diff/50001/webrtc/call/call.h File webrtc/call/call.h (right): https://codereview.webrtc.org/2834663003/diff/50001/webrtc/call/call.h#newcode103 webrtc/call/call.h:103: // Allows mocking |transport_send| for testing. I think this ...
3 years, 7 months ago (2017-05-01 11:17:06 UTC) #9
nisse-webrtc
https://codereview.webrtc.org/2834663003/diff/50001/webrtc/call/call.h File webrtc/call/call.h (right): https://codereview.webrtc.org/2834663003/diff/50001/webrtc/call/call.h#newcode103 webrtc/call/call.h:103: // Allows mocking |transport_send| for testing. On 2017/05/01 11:17:06, ...
3 years, 7 months ago (2017-05-02 07:01:30 UTC) #10
Zach Stein
https://codereview.webrtc.org/2834663003/diff/50001/webrtc/call/fake_rtp_transport_controller_send.h File webrtc/call/fake_rtp_transport_controller_send.h (right): https://codereview.webrtc.org/2834663003/diff/50001/webrtc/call/fake_rtp_transport_controller_send.h#newcode20 webrtc/call/fake_rtp_transport_controller_send.h:20: class FakeRtpTransportController : public RtpTransportControllerSendInterface { On 2017/05/01 11:17:06, ...
3 years, 7 months ago (2017-05-04 21:30:02 UTC) #11
nisse-webrtc
https://codereview.webrtc.org/2834663003/diff/50001/webrtc/call/rtp_transport_controller_send.h File webrtc/call/rtp_transport_controller_send.h (left): https://codereview.webrtc.org/2834663003/diff/50001/webrtc/call/rtp_transport_controller_send.h#oldcode30 webrtc/call/rtp_transport_controller_send.h:30: SendSideCongestionController::Observer* observer); On 2017/05/04 21:30:02, Zach Stein wrote: > ...
3 years, 7 months ago (2017-05-05 07:12:38 UTC) #12
Zach Stein
https://codereview.webrtc.org/2834663003/diff/50001/webrtc/call/rtp_transport_controller_send.h File webrtc/call/rtp_transport_controller_send.h (left): https://codereview.webrtc.org/2834663003/diff/50001/webrtc/call/rtp_transport_controller_send.h#oldcode30 webrtc/call/rtp_transport_controller_send.h:30: SendSideCongestionController::Observer* observer); On 2017/05/05 07:12:38, nisse-webrtc wrote: > On ...
3 years, 7 months ago (2017-05-05 23:28:13 UTC) #13
stefan-webrtc
lgtm
3 years, 7 months ago (2017-05-06 06:27:45 UTC) #14
nisse-webrtc
lgtm
3 years, 7 months ago (2017-05-08 08:45:22 UTC) #15
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/2834663003/90001
3 years, 7 months ago (2017-05-08 17:49:43 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/2834663003/110001
3 years, 7 months ago (2017-05-08 18:00:37 UTC) #21
commit-bot: I haz the power
3 years, 7 months ago (2017-05-08 18:52:44 UTC) #24
Message was sent while issue was closed.
Committed patchset #7 (id:110001) as
https://chromium.googlesource.com/external/webrtc/+/7cb69d5cc71a496b0e9372001...

Powered by Google App Engine
This is Rietveld 408576698