Index: webrtc/test/call_test.cc |
diff --git a/webrtc/test/call_test.cc b/webrtc/test/call_test.cc |
index 6e665cf6ed0e14aec6c4bc85dc27d3c4b23a5cfc..4220672c3854233c4b64fbd16eb49d215e5d6cfc 100644 |
--- a/webrtc/test/call_test.cc |
+++ b/webrtc/test/call_test.cc |
@@ -60,6 +60,7 @@ void CallTest::RunBaseTest(BaseTest* test) { |
AudioState::Config audio_state_config; |
audio_state_config.voice_engine = voe_send_.voice_engine; |
audio_state_config.audio_mixer = AudioMixerImpl::Create(); |
+ audio_state_config.audio_processing = apm_send_; |
send_config.audio_state = AudioState::Create(audio_state_config); |
} |
CreateSenderCall(send_config); |
@@ -69,6 +70,7 @@ void CallTest::RunBaseTest(BaseTest* test) { |
AudioState::Config audio_state_config; |
audio_state_config.voice_engine = voe_recv_.voice_engine; |
audio_state_config.audio_mixer = AudioMixerImpl::Create(); |
+ audio_state_config.audio_processing = apm_recv_; |
recv_config.audio_state = AudioState::Create(audio_state_config); |
} |
CreateReceiverCall(recv_config); |
@@ -376,19 +378,21 @@ void CallTest::DestroyStreams() { |
} |
void CallTest::CreateVoiceEngines() { |
+ apm_send_ = AudioProcessing::Create(); |
stefan-webrtc
2017/06/29 14:27:52
This method is supposed to include legacy voice en
|
voe_send_.voice_engine = VoiceEngine::Create(); |
voe_send_.base = VoEBase::GetInterface(voe_send_.voice_engine); |
- EXPECT_EQ(0, voe_send_.base->Init(fake_send_audio_device_.get(), nullptr, |
- decoder_factory_)); |
+ EXPECT_EQ(0, voe_send_.base->Init(fake_send_audio_device_.get(), |
+ apm_send_.get(), decoder_factory_)); |
VoEBase::ChannelConfig config; |
config.enable_voice_pacing = true; |
voe_send_.channel_id = voe_send_.base->CreateChannel(config); |
EXPECT_GE(voe_send_.channel_id, 0); |
+ apm_recv_ = AudioProcessing::Create(); |
voe_recv_.voice_engine = VoiceEngine::Create(); |
voe_recv_.base = VoEBase::GetInterface(voe_recv_.voice_engine); |
- EXPECT_EQ(0, voe_recv_.base->Init(fake_recv_audio_device_.get(), nullptr, |
- decoder_factory_)); |
+ EXPECT_EQ(0, voe_recv_.base->Init(fake_recv_audio_device_.get(), |
+ apm_recv_.get(), decoder_factory_)); |
voe_recv_.channel_id = voe_recv_.base->CreateChannel(); |
EXPECT_GE(voe_recv_.channel_id, 0); |
} |