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

Issue 1670153003: Introduce struct MediaConfig, with construction-time settings. (Closed)

Created:
4 years, 10 months ago by nisse-webrtc
Modified:
4 years, 10 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Introduce struct MediaConfig, with construction-time settings. Pass it to MediaController constructor and down to WebRtcVideoEngine2 and WebRtcVoiceEngine. Follows discussion on https://codereview.webrtc.org/1646253004/ TBR=pthatcher@webrtc.org BUG=webrtc:5438 Committed: https://crrev.com/51542be8ce35503c3cec4755ded415ecb1da2d37 Cr-Commit-Position: refs/heads/master@{#11595}

Patch Set 1 #

Total comments: 28

Patch Set 2 : Addressed simpler nits and naming issues. #

Patch Set 3 : Move MediaConfig to mediachannel.h, and to the cricket namespace. #

Patch Set 4 : Fix tests related to MediaConfig. #

Total comments: 2

Patch Set 5 : Added new peerconnection test for dscp constraint. #

Total comments: 26

Patch Set 6 : Improved test. #

Patch Set 7 : Addressed Per's comments. #

Total comments: 6

Patch Set 8 : Split into three separate tests. #

Total comments: 13

Patch Set 9 : Fixed comments and other nits. #

Patch Set 10 : Rebase (lots of files moving around). #

Patch Set 11 : Formatting tweaks. #

Total comments: 7

Patch Set 12 : git cl format #

Total comments: 11

Patch Set 13 : Reorganize unittests. #

Patch Set 14 : Rebase. #

Patch Set 15 : Consolidate tests of default values. #

Patch Set 16 : Deleted a left over comment. #

Total comments: 1

Patch Set 17 : Addressed test nit; use reference. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+321 lines, -209 lines) Patch
M webrtc/api/fakemediacontroller.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M webrtc/api/mediacontroller.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M webrtc/api/mediacontroller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +10 lines, -3 lines 0 comments Download
M webrtc/api/peerconnection.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +14 lines, -1 line 0 comments Download
M webrtc/api/peerconnectionfactory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/api/peerconnectionfactory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/api/peerconnectioninterface_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +99 lines, -0 lines 0 comments Download
M webrtc/api/statscollector_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/api/webrtcsession.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +0 lines, -16 lines 0 comments Download
M webrtc/api/webrtcsession_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -23 lines 0 comments Download
M webrtc/media/base/fakemediaengine.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/media/base/mediachannel.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 15 chunks +49 lines, -46 lines 0 comments Download
M webrtc/media/base/mediaengine.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -5 lines 0 comments Download
M webrtc/media/base/videoengine_unittest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/media/engine/nullwebrtcvideoengine.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +8 lines, -1 line 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 8 chunks +17 lines, -29 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 11 chunks +32 lines, -25 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -0 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +10 lines, -17 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 11 chunks +45 lines, -31 lines 0 comments Download
M webrtc/pc/channelmanager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 44 (10 generated)
nisse-webrtc
Added a MediaConfig struct now. Tests need more work. A few stylistic questions: In which ...
4 years, 10 months ago (2016-02-05 14:27:53 UTC) #2
pthatcher1
https://codereview.webrtc.org/1670153003/diff/1/talk/app/webrtc/fakemediacontroller.h File talk/app/webrtc/fakemediacontroller.h (right): https://codereview.webrtc.org/1670153003/diff/1/talk/app/webrtc/fakemediacontroller.h#newcode49 talk/app/webrtc/fakemediacontroller.h:49: const webrtc::MediaConfig* config() const override { I'd say make ...
4 years, 10 months ago (2016-02-05 17:11:30 UTC) #3
nisse-webrtc
I've addressed the simpler issues now. Next, I'll update tests. https://codereview.webrtc.org/1670153003/diff/1/talk/app/webrtc/mediacontroller.h File talk/app/webrtc/mediacontroller.h (right): https://codereview.webrtc.org/1670153003/diff/1/talk/app/webrtc/mediacontroller.h#newcode41 ...
4 years, 10 months ago (2016-02-08 09:02:32 UTC) #4
pbos-webrtc
https://codereview.webrtc.org/1670153003/diff/1/webrtc/media/base/mediachannel.h File webrtc/media/base/mediachannel.h (right): https://codereview.webrtc.org/1670153003/diff/1/webrtc/media/base/mediachannel.h#newcode360 webrtc/media/base/mediachannel.h:360: SetDscp(enable_dscp_ ? MediaTypeDscpValue() : rtc::DSCP_DEFAULT); On 2016/02/08 09:02:32, nisse-webrtc ...
4 years, 10 months ago (2016-02-08 10:38:48 UTC) #5
nisse-webrtc
https://codereview.webrtc.org/1670153003/diff/1/talk/app/webrtc/webrtcsession_unittest.cc File talk/app/webrtc/webrtcsession_unittest.cc (right): https://codereview.webrtc.org/1670153003/diff/1/talk/app/webrtc/webrtcsession_unittest.cc#newcode4081 talk/app/webrtc/webrtcsession_unittest.cc:4081: #if 0 I'm getting into trouble with the webrtcsession ...
4 years, 10 months ago (2016-02-08 12:22:31 UTC) #6
nisse-webrtc
On 2016/02/08 12:22:31, nisse-webrtc wrote: > But in WebRtcSessionTest.TestDscpConstraint, there's no PeerConnection involved, > and ...
4 years, 10 months ago (2016-02-08 14:34:08 UTC) #7
pthatcher1
On 2016/02/08 14:34:08, nisse-webrtc wrote: > On 2016/02/08 12:22:31, nisse-webrtc wrote: > > But in ...
4 years, 10 months ago (2016-02-08 18:58:39 UTC) #8
pthatcher1
Seems like the unit test is the only thing remaining. https://codereview.webrtc.org/1670153003/diff/1/talk/app/webrtc/webrtcsession.cc File talk/app/webrtc/webrtcsession.cc (left): https://codereview.webrtc.org/1670153003/diff/1/talk/app/webrtc/webrtcsession.cc#oldcode681 ...
4 years, 10 months ago (2016-02-08 19:03:01 UTC) #9
nisse-webrtc
Wrote a new test. Not entirely sure where it belongs. And I still think it ...
4 years, 10 months ago (2016-02-09 09:01:38 UTC) #10
pbos-webrtc
Think this tests makes sense, pthatcher@ might be more familiar with if this is how ...
4 years, 10 months ago (2016-02-09 15:31:44 UTC) #11
perkj_webrtc
drive be comments. Hopefully the comments make it easier to land this... https://codereview.webrtc.org/1670153003/diff/80001/talk/app/webrtc/fakemediacontroller.h File talk/app/webrtc/fakemediacontroller.h ...
4 years, 10 months ago (2016-02-09 15:35:37 UTC) #13
nisse-webrtc
I think I've addressed everything now, except for the FakeMediaController media_config nit. https://codereview.webrtc.org/1670153003/diff/80001/talk/app/webrtc/fakemediacontroller.h File talk/app/webrtc/fakemediacontroller.h ...
4 years, 10 months ago (2016-02-10 08:53:00 UTC) #14
perkj_webrtc
https://codereview.webrtc.org/1670153003/diff/120001/talk/app/webrtc/fakemediacontroller.h File talk/app/webrtc/fakemediacontroller.h (right): https://codereview.webrtc.org/1670153003/diff/120001/talk/app/webrtc/fakemediacontroller.h#newcode51 talk/app/webrtc/fakemediacontroller.h:51: static const MediaConfig media_config = MediaConfig(); remove static. make ...
4 years, 10 months ago (2016-02-10 10:41:27 UTC) #15
nisse-webrtc
https://codereview.webrtc.org/1670153003/diff/120001/talk/app/webrtc/fakemediacontroller.h File talk/app/webrtc/fakemediacontroller.h (right): https://codereview.webrtc.org/1670153003/diff/120001/talk/app/webrtc/fakemediacontroller.h#newcode51 talk/app/webrtc/fakemediacontroller.h:51: static const MediaConfig media_config = MediaConfig(); On 2016/02/10 10:41:26, ...
4 years, 10 months ago (2016-02-10 13:42:01 UTC) #16
pthatcher1
lgtm https://codereview.webrtc.org/1670153003/diff/140001/talk/app/webrtc/peerconnectioninterface_unittest.cc File talk/app/webrtc/peerconnectioninterface_unittest.cc (right): https://codereview.webrtc.org/1670153003/diff/140001/talk/app/webrtc/peerconnectioninterface_unittest.cc#newcode2377 talk/app/webrtc/peerconnectioninterface_unittest.cc:2377: mutable cricket::MediaConfig create_media_controller_config_; What's the purpose of marking ...
4 years, 10 months ago (2016-02-10 19:24:23 UTC) #17
pthatcher1
lgtm
4 years, 10 months ago (2016-02-10 19:25:01 UTC) #18
nisse-webrtc
https://codereview.webrtc.org/1670153003/diff/140001/talk/app/webrtc/peerconnectioninterface_unittest.cc File talk/app/webrtc/peerconnectioninterface_unittest.cc (right): https://codereview.webrtc.org/1670153003/diff/140001/talk/app/webrtc/peerconnectioninterface_unittest.cc#newcode2377 talk/app/webrtc/peerconnectioninterface_unittest.cc:2377: mutable cricket::MediaConfig create_media_controller_config_; On 2016/02/10 19:24:23, pthatcher1 wrote: > ...
4 years, 10 months ago (2016-02-11 07:54:34 UTC) #19
perkj_webrtc
https://codereview.webrtc.org/1670153003/diff/140001/talk/app/webrtc/peerconnectioninterface_unittest.cc File talk/app/webrtc/peerconnectioninterface_unittest.cc (right): https://codereview.webrtc.org/1670153003/diff/140001/talk/app/webrtc/peerconnectioninterface_unittest.cc#newcode2362 talk/app/webrtc/peerconnectioninterface_unittest.cc:2362: nit: remove empty line https://codereview.webrtc.org/1670153003/diff/140001/talk/app/webrtc/peerconnectioninterface_unittest.cc#newcode2377 talk/app/webrtc/peerconnectioninterface_unittest.cc:2377: mutable cricket::MediaConfig create_media_controller_config_; ...
4 years, 10 months ago (2016-02-11 08:04:06 UTC) #20
nisse-webrtc
Rebased, maybe you want to have another look before I try to commit. https://codereview.webrtc.org/1670153003/diff/140001/talk/app/webrtc/peerconnectioninterface_unittest.cc File ...
4 years, 10 months ago (2016-02-11 09:16:00 UTC) #21
pbos-webrtc
https://codereview.webrtc.org/1670153003/diff/200001/webrtc/api/peerconnectioninterface_unittest.cc File webrtc/api/peerconnectioninterface_unittest.cc (right): https://codereview.webrtc.org/1670153003/diff/200001/webrtc/api/peerconnectioninterface_unittest.cc#newcode2349 webrtc/api/peerconnectioninterface_unittest.cc:2349: mutable bool create_media_controller_called_ = false; If these aren't race ...
4 years, 10 months ago (2016-02-11 09:22:16 UTC) #22
nisse-webrtc
https://codereview.webrtc.org/1670153003/diff/200001/webrtc/api/peerconnectioninterface_unittest.cc File webrtc/api/peerconnectioninterface_unittest.cc (right): https://codereview.webrtc.org/1670153003/diff/200001/webrtc/api/peerconnectioninterface_unittest.cc#newcode2349 webrtc/api/peerconnectioninterface_unittest.cc:2349: mutable bool create_media_controller_called_ = false; On 2016/02/11 09:22:16, pbos-webrtc ...
4 years, 10 months ago (2016-02-11 09:31:32 UTC) #23
pbos-webrtc
lgtm, this looks a lot better, woo! https://codereview.webrtc.org/1670153003/diff/200001/webrtc/api/fakemediacontroller.h File webrtc/api/fakemediacontroller.h (right): https://codereview.webrtc.org/1670153003/diff/200001/webrtc/api/fakemediacontroller.h#newcode38 webrtc/api/fakemediacontroller.h:38: const MediaConfig ...
4 years, 10 months ago (2016-02-11 11:34:10 UTC) #24
nisse-webrtc
https://codereview.webrtc.org/1670153003/diff/200001/webrtc/api/fakemediacontroller.h File webrtc/api/fakemediacontroller.h (right): https://codereview.webrtc.org/1670153003/diff/200001/webrtc/api/fakemediacontroller.h#newcode38 webrtc/api/fakemediacontroller.h:38: const MediaConfig media_config_ = MediaConfig(); On 2016/02/11 11:34:10, pbos-webrtc ...
4 years, 10 months ago (2016-02-11 12:10:18 UTC) #25
perkj_webrtc
https://codereview.webrtc.org/1670153003/diff/220001/webrtc/api/peerconnectioninterface_unittest.cc File webrtc/api/peerconnectioninterface_unittest.cc (right): https://codereview.webrtc.org/1670153003/diff/220001/webrtc/api/peerconnectioninterface_unittest.cc#newcode2362 webrtc/api/peerconnectioninterface_unittest.cc:2362: // Without constraint, default value is false nit add ...
4 years, 10 months ago (2016-02-11 12:32:08 UTC) #26
pbos-webrtc
ack, lgtm https://codereview.webrtc.org/1670153003/diff/220001/webrtc/media/webrtc/webrtcvideoengine2.cc File webrtc/media/webrtc/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/1670153003/diff/220001/webrtc/media/webrtc/webrtcvideoengine2.cc#newcode1817 webrtc/media/webrtc/webrtcvideoengine2.cc:1817: 1000 * parameters_.options.screencast_min_bitrate_kbps.value_or(0); On 2016/02/11 12:32:08, perkj_webrtc ...
4 years, 10 months ago (2016-02-11 12:50:29 UTC) #27
nisse-webrtc
https://codereview.webrtc.org/1670153003/diff/220001/webrtc/api/peerconnectioninterface_unittest.cc File webrtc/api/peerconnectioninterface_unittest.cc (right): https://codereview.webrtc.org/1670153003/diff/220001/webrtc/api/peerconnectioninterface_unittest.cc#newcode2362 webrtc/api/peerconnectioninterface_unittest.cc:2362: // Without constraint, default value is false On 2016/02/11 ...
4 years, 10 months ago (2016-02-11 13:45:08 UTC) #28
perkj_webrtc
lgtm https://codereview.webrtc.org/1670153003/diff/300001/webrtc/api/peerconnectioninterface_unittest.cc File webrtc/api/peerconnectioninterface_unittest.cc (right): https://codereview.webrtc.org/1670153003/diff/300001/webrtc/api/peerconnectioninterface_unittest.cc#newcode2359 webrtc/api/peerconnectioninterface_unittest.cc:2359: const cricket::MediaConfig TestCreatePeerConnection( nit &
4 years, 10 months ago (2016-02-12 09:19:24 UTC) #29
perkj_webrtc
lgtm
4 years, 10 months ago (2016-02-12 09:19:27 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1670153003/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1670153003/320001
4 years, 10 months ago (2016-02-12 09:23:44 UTC) #33
nisse-webrtc
Magnus, can you have a look? I lack owner's approval for the change to channelmanager.cc.
4 years, 10 months ago (2016-02-12 09:30:12 UTC) #35
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/3401)
4 years, 10 months ago (2016-02-12 09:36:37 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1670153003/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1670153003/320001
4 years, 10 months ago (2016-02-12 10:25:59 UTC) #40
commit-bot: I haz the power
Committed patchset #17 (id:320001)
4 years, 10 months ago (2016-02-12 10:27:11 UTC) #42
commit-bot: I haz the power
4 years, 10 months ago (2016-02-12 10:27:22 UTC) #44
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/51542be8ce35503c3cec4755ded415ecb1da2d37
Cr-Commit-Position: refs/heads/master@{#11595}

Powered by Google App Engine
This is Rietveld 408576698