Delete class ChannelReceiveProxy.

Replaced by an interface ChannelReceiveInterface, implemented
by ChannelReceive and the corresponding mock class.

Moved thread checkers to ChannelReceive. That class is moved to the
anonymous namespace in the .cc file, and exposed only via a function
CreateChannelReceive.

Bug: webrtc:9801
Change-Id: Iecacbb1858885bf86da9484f2422e53323dbe87a
Reviewed-on: https://webrtc-review.googlesource.com/c/110610
Commit-Queue: Niels Moller <nisse@webrtc.org>
Reviewed-by: Fredrik Solenberg <solenberg@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25665}
This commit is contained in:
Niels Möller
2018-11-16 09:50:42 +01:00
committed by Commit Bot
parent 25a3a97f59
commit 349ade3a4b
11 changed files with 436 additions and 582 deletions

View File

@ -553,9 +553,9 @@ RtpState AudioSendStream::GetRtpState() const {
return rtp_rtcp_module_->GetRtpState();
}
const voe::ChannelSendProxy& AudioSendStream::GetChannelProxy() const {
const voe::ChannelSend* AudioSendStream::GetChannel() const {
RTC_DCHECK(channel_proxy_.get());
return *channel_proxy_.get();
return channel_proxy_->GetChannel();
}
internal::AudioState* AudioSendStream::audio_state() {