Remove most of the remaining calls to VoE APIs from Audio[Send|Receive]Stream.

(TBRing webrtc/test/ OWNER)

BUG=webrtc:4690
TBR=stefan@webrtc.org

Review-Url: https://codereview.webrtc.org/2669153004
Cr-Commit-Position: refs/heads/master@{#16455}
This commit is contained in:
solenberg
2017-02-06 12:53:57 -08:00
committed by Commit bot
parent f9b6e5e4b5
commit bd9a77f4e5
7 changed files with 135 additions and 68 deletions

View File

@ -143,7 +143,7 @@ struct ConfigHelper {
void SetupMockForGetStats() {
using testing::DoAll;
using testing::SetArgReferee;
using testing::SetArgPointee;
ASSERT_TRUE(channel_proxy_);
EXPECT_CALL(*channel_proxy_, GetRTCPStatistics())
@ -156,9 +156,8 @@ struct ConfigHelper {
.WillOnce(Return(kNetworkStats));
EXPECT_CALL(*channel_proxy_, GetDecodingCallStatistics())
.WillOnce(Return(kAudioDecodeStats));
EXPECT_CALL(voice_engine_, GetRecCodec(kChannelId, _))
.WillOnce(DoAll(SetArgReferee<1>(kCodecInst), Return(0)));
EXPECT_CALL(*channel_proxy_, GetRecCodec(_))
.WillOnce(DoAll(SetArgPointee<0>(kCodecInst), Return(true)));
}
private: