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

Issue 2461523002: Remove usage of VoEBase::AssociateSendChannel() from WVoMC. (Closed)

Created:
4 years, 1 month ago by the sun
Modified:
4 years, 1 month ago
Reviewers:
kwiberg-webrtc
CC:
webrtc-reviews_webrtc.org, Andrew MacDonald, henrika_webrtc, stefan-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc, minyue-webrtc, the sun, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Remove usage of VoEBase::AssociateSendChannel() from WVoMC. - Functionality now implemented in AudioReceiveStream and Call. - Added some missing function to MockChannelProxy. BUG=webrtc:4690 Committed: https://crrev.com/7602aabdc0414f30756b2414e8623e41478a7503 Cr-Commit-Position: refs/heads/master@{#15072}

Patch Set 1 #

Patch Set 2 : Added unit tests #

Total comments: 17

Patch Set 3 : fix comments #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -79 lines) Patch
M webrtc/audio/audio_receive_stream.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/audio/audio_receive_stream.cc View 1 2 3 chunks +14 lines, -0 lines 0 comments Download
M webrtc/audio/audio_receive_stream_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/call/call.cc View 1 2 3 chunks +26 lines, -3 lines 0 comments Download
M webrtc/call/call_unittest.cc View 1 2 2 chunks +97 lines, -0 lines 0 comments Download
M webrtc/media/engine/fakewebrtcvoiceengine.h View 4 chunks +2 lines, -16 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.cc View 1 3 chunks +4 lines, -13 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine_unittest.cc View 1 2 chunks +21 lines, -33 lines 0 comments Download
M webrtc/test/mock_voe_channel_proxy.h View 1 2 chunks +10 lines, -3 lines 0 comments Download
M webrtc/test/mock_voice_engine.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/voice_engine/channel.h View 1 1 chunk +1 line, -6 lines 0 comments Download
M webrtc/voice_engine/channel.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M webrtc/voice_engine/channel_proxy.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/voice_engine/channel_proxy.cc View 1 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
the sun
4 years, 1 month ago (2016-11-10 11:42:18 UTC) #3
kwiberg-webrtc
https://codereview.webrtc.org/2461523002/diff/20001/webrtc/audio/audio_receive_stream.cc File webrtc/audio/audio_receive_stream.cc (right): https://codereview.webrtc.org/2461523002/diff/20001/webrtc/audio/audio_receive_stream.cc#newcode147 webrtc/audio/audio_receive_stream.cc:147: AssociateSendStream(nullptr); Or just channel_proxy_->DisassociateSendChannel();, so that it's easier to ...
4 years, 1 month ago (2016-11-11 13:47:40 UTC) #4
the sun
https://codereview.webrtc.org/2461523002/diff/20001/webrtc/audio/audio_receive_stream.cc File webrtc/audio/audio_receive_stream.cc (right): https://codereview.webrtc.org/2461523002/diff/20001/webrtc/audio/audio_receive_stream.cc#newcode147 webrtc/audio/audio_receive_stream.cc:147: AssociateSendStream(nullptr); On 2016/11/11 13:47:39, kwiberg-webrtc wrote: > Or just ...
4 years, 1 month ago (2016-11-11 20:03:40 UTC) #5
kwiberg-webrtc
lgtm https://codereview.webrtc.org/2461523002/diff/20001/webrtc/audio/audio_receive_stream.cc File webrtc/audio/audio_receive_stream.cc (right): https://codereview.webrtc.org/2461523002/diff/20001/webrtc/audio/audio_receive_stream.cc#newcode238 webrtc/audio/audio_receive_stream.cc:238: VoiceEngineImpl* voe_impl = static_cast<VoiceEngineImpl*>(voice_engine()); On 2016/11/11 20:03:39, the ...
4 years, 1 month ago (2016-11-13 20:17:02 UTC) #6
the sun
https://codereview.webrtc.org/2461523002/diff/20001/webrtc/audio/audio_receive_stream.cc File webrtc/audio/audio_receive_stream.cc (right): https://codereview.webrtc.org/2461523002/diff/20001/webrtc/audio/audio_receive_stream.cc#newcode238 webrtc/audio/audio_receive_stream.cc:238: VoiceEngineImpl* voe_impl = static_cast<VoiceEngineImpl*>(voice_engine()); On 2016/11/13 20:17:02, kwiberg-webrtc wrote: ...
4 years, 1 month ago (2016-11-14 18:58:06 UTC) #7
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/2461523002/60001
4 years, 1 month ago (2016-11-14 19:07:34 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-14 19:30:12 UTC) #12
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/7602aabdc0414f30756b2414e8623e41478a7503 Cr-Commit-Position: refs/heads/master@{#15072}
4 years, 1 month ago (2016-11-14 19:33:28 UTC) #14
kwiberg-webrtc
4 years, 1 month ago (2016-11-15 05:05:02 UTC) #15
Message was sent while issue was closed.
https://codereview.webrtc.org/2461523002/diff/20001/webrtc/call/call.cc
File webrtc/call/call.cc (right):

https://codereview.webrtc.org/2461523002/diff/20001/webrtc/call/call.cc#newco...
webrtc/call/call.cc:432: uint32_t ssrc = audio_send_stream->config().rtp.ssrc;
On 2016/11/14 18:58:06, the sun wrote:
> On 2016/11/13 20:17:02, kwiberg-webrtc wrote:
> > On 2016/11/11 20:03:39, the sun wrote:
> > > On 2016/11/11 13:47:40, kwiberg-webrtc wrote:
> > > > const?
> > > 
> > > Hmm, why here, in particular, and not on every local variable that's not
> > really
> > > variable?
> > 
> > I try to complain in pretty much all such cases, yes. But I probably miss a
> few.
> 
> In the name of consistency with surrounding code I will not change it here.
Does
> the style guide favor const in this case? I've not found that a useful
practice
> - I tried it once but thought there was just lot of verbosity for no real gain
> (same as when using const for primitive type arguments).

I don't think the style guide takes a position on this issue. But I do know that
in many cases, it makes the code easier to read, because you know right away
that the variable isn't being modified by the code that follows. That's why I
recommend people to say const; if it isn't immediately obvious to me when
reviewing the code whether a variable is being modified or not, "const" would
have helped.

Powered by Google App Engine
This is Rietveld 408576698