Index: webrtc/media/engine/webrtcvoiceengine_unittest.cc |
diff --git a/webrtc/media/engine/webrtcvoiceengine_unittest.cc b/webrtc/media/engine/webrtcvoiceengine_unittest.cc |
index 674924eda855b0bed233ef0768421a3c259d483d..342a62fca33f748e81bcc28640c9bc9ae5f0ee82 100644 |
--- a/webrtc/media/engine/webrtcvoiceengine_unittest.cc |
+++ b/webrtc/media/engine/webrtcvoiceengine_unittest.cc |
@@ -84,7 +84,7 @@ TEST(WebRtcVoiceEngineTestStubLibrary, StartupShutdown) { |
EXPECT_FALSE(voe.IsInited()); |
{ |
cricket::WebRtcVoiceEngine engine( |
- &adm, webrtc::MockAudioDecoderFactory::CreateUnusedFactory(), |
+ &adm, webrtc::MockAudioDecoderFactory::CreateUnusedFactory(), nullptr, |
new FakeVoEWrapper(&voe)); |
EXPECT_TRUE(voe.IsInited()); |
} |
@@ -116,7 +116,7 @@ class WebRtcVoiceEngineTestFake : public testing::Test { |
EXPECT_CALL(apm_, ApplyConfig(testing::_)); |
EXPECT_CALL(apm_, SetExtraOptions(testing::_)); |
EXPECT_CALL(apm_, Initialize()).WillOnce(Return(0)); |
- engine_.reset(new cricket::WebRtcVoiceEngine(&adm_, factory, |
+ engine_.reset(new cricket::WebRtcVoiceEngine(&adm_, factory, nullptr, |
new FakeVoEWrapper(&voe_))); |
send_parameters_.codecs.push_back(kPcmuCodec); |
recv_parameters_.codecs.push_back(kPcmuCodec); |
@@ -3395,7 +3395,7 @@ TEST(WebRtcVoiceEngineTest, StartupShutdown) { |
// If the VoiceEngine wants to gather available codecs early, that's fine but |
// we never want it to create a decoder at this stage. |
cricket::WebRtcVoiceEngine engine( |
- nullptr, webrtc::MockAudioDecoderFactory::CreateUnusedFactory()); |
+ nullptr, webrtc::MockAudioDecoderFactory::CreateUnusedFactory(), nullptr); |
webrtc::RtcEventLogNullImpl event_log; |
std::unique_ptr<webrtc::Call> call( |
webrtc::Call::Create(webrtc::Call::Config(&event_log))); |
@@ -3412,7 +3412,7 @@ TEST(WebRtcVoiceEngineTest, StartupShutdownWithExternalADM) { |
EXPECT_CALL(adm, Release()).Times(3).WillRepeatedly(Return(0)); |
{ |
cricket::WebRtcVoiceEngine engine( |
- &adm, webrtc::MockAudioDecoderFactory::CreateUnusedFactory()); |
+ &adm, webrtc::MockAudioDecoderFactory::CreateUnusedFactory(), nullptr); |
webrtc::RtcEventLogNullImpl event_log; |
std::unique_ptr<webrtc::Call> call( |
webrtc::Call::Create(webrtc::Call::Config(&event_log))); |
@@ -3480,7 +3480,7 @@ TEST(WebRtcVoiceEngineTest, HasCorrectCodecs) { |
// TODO(ossu): Why are the payload types of codecs with non-static payload |
// type assignments checked here? It shouldn't really matter. |
cricket::WebRtcVoiceEngine engine( |
- nullptr, webrtc::MockAudioDecoderFactory::CreateUnusedFactory()); |
+ nullptr, webrtc::MockAudioDecoderFactory::CreateUnusedFactory(), nullptr); |
for (const cricket::AudioCodec& codec : engine.send_codecs()) { |
if (codec.name == "CN" && codec.clockrate == 16000) { |
EXPECT_EQ(105, codec.id); |
@@ -3516,7 +3516,7 @@ TEST(WebRtcVoiceEngineTest, HasCorrectCodecs) { |
// Tests that VoE supports at least 32 channels |
TEST(WebRtcVoiceEngineTest, Has32Channels) { |
cricket::WebRtcVoiceEngine engine( |
- nullptr, webrtc::MockAudioDecoderFactory::CreateUnusedFactory()); |
+ nullptr, webrtc::MockAudioDecoderFactory::CreateUnusedFactory(), nullptr); |
webrtc::RtcEventLogNullImpl event_log; |
std::unique_ptr<webrtc::Call> call( |
webrtc::Call::Create(webrtc::Call::Config(&event_log))); |
@@ -3549,7 +3549,7 @@ TEST(WebRtcVoiceEngineTest, SetRecvCodecs) { |
// SetRecvParameters returns true. |
// I think it will become clear once audio decoder injection is completed. |
cricket::WebRtcVoiceEngine engine( |
- nullptr, webrtc::CreateBuiltinAudioDecoderFactory()); |
+ nullptr, webrtc::CreateBuiltinAudioDecoderFactory(), nullptr); |
webrtc::RtcEventLogNullImpl event_log; |
std::unique_ptr<webrtc::Call> call( |
webrtc::Call::Create(webrtc::Call::Config(&event_log))); |