Index: webrtc/voice_engine/test/auto_test/standard/codec_before_streaming_test.cc |
diff --git a/webrtc/voice_engine/test/auto_test/standard/codec_before_streaming_test.cc b/webrtc/voice_engine/test/auto_test/standard/codec_before_streaming_test.cc |
index a733b12705c46af7a093a038db6786ae66f8ff7d..d9a5e2b794970ba019154e7f2fb3a57e63be3cf9 100644 |
--- a/webrtc/voice_engine/test/auto_test/standard/codec_before_streaming_test.cc |
+++ b/webrtc/voice_engine/test/auto_test/standard/codec_before_streaming_test.cc |
@@ -8,7 +8,9 @@ |
* be found in the AUTHORS file in the root of the source tree. |
*/ |
+#include "webrtc/voice_engine/channel_proxy.h" |
#include "webrtc/voice_engine/test/auto_test/fixtures/after_initialization_fixture.h" |
+#include "webrtc/voice_engine/voice_engine_impl.h" |
class CodecBeforeStreamingTest : public AfterInitializationFixture { |
protected: |
@@ -19,6 +21,9 @@ class CodecBeforeStreamingTest : public AfterInitializationFixture { |
codec_instance_.pacsize = 480; |
channel_ = voe_base_->CreateChannel(); |
+ static_cast<webrtc::VoiceEngineImpl*>(voice_engine_) |
+ ->GetChannelProxy(channel_) |
+ ->RegisterLegacyCodecs(); |
} |
void TearDown() { |