Index: webrtc/test/call_test.cc |
diff --git a/webrtc/test/call_test.cc b/webrtc/test/call_test.cc |
index 6ec3fda86da94503c10db7271cc10b198a303fb7..f5850e5ca2ca0b0a2bae5e36c02d41dd5e0c4d66 100644 |
--- a/webrtc/test/call_test.cc |
+++ b/webrtc/test/call_test.cc |
@@ -15,6 +15,7 @@ |
#include "webrtc/api/audio_codecs/builtin_audio_decoder_factory.h" |
#include "webrtc/base/checks.h" |
#include "webrtc/config.h" |
+#include "webrtc/modules/audio_coding/codecs/builtin_audio_encoder_factory.h" |
#include "webrtc/modules/audio_mixer/audio_mixer_impl.h" |
#include "webrtc/test/testsupport/fileutils.h" |
#include "webrtc/voice_engine/include/voe_base.h" |
@@ -38,6 +39,7 @@ CallTest::CallTest() |
num_audio_streams_(0), |
num_flexfec_streams_(0), |
decoder_factory_(CreateBuiltinAudioDecoderFactory()), |
+ encoder_factory_(CreateBuiltinAudioEncoderFactory()), |
fake_send_audio_device_(nullptr), |
fake_recv_audio_device_(nullptr) {} |
@@ -222,8 +224,10 @@ void CallTest::CreateSendConfig(size_t num_video_streams, |
audio_send_config_ = AudioSendStream::Config(send_transport); |
audio_send_config_.voe_channel_id = voe_send_.channel_id; |
audio_send_config_.rtp.ssrc = kAudioSendSsrc; |
- audio_send_config_.send_codec_spec.codec_inst = |
- CodecInst{kAudioSendPayloadType, "OPUS", 48000, 960, 2, 64000}; |
+ audio_send_config_.send_codec_spec = |
+ rtc::Optional<AudioSendStream::Config::SendCodecSpec>( |
+ {kAudioSendPayloadType, {"OPUS", 48000, 2, {{"stereo", "1"}}}}); |
+ audio_send_config_.encoder_factory = encoder_factory_; |
} |
// TODO(brandtr): Update this when we support multistream protection. |