Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / voice_engine / test / auto_test / fixtures / after_initialization_fixture.cc
index ede8b0d..c54d289 100644 (file)
@@ -8,6 +8,7 @@
  *  be found in the AUTHORS file in the root of the source tree.
  */
 
+#include "webrtc/modules/audio_processing/include/audio_processing.h"
 #include "webrtc/voice_engine/test/auto_test/fixtures/after_initialization_fixture.h"
 
 class TestErrorObserver : public webrtc::VoiceEngineObserver {
@@ -22,7 +23,11 @@ class TestErrorObserver : public webrtc::VoiceEngineObserver {
 
 AfterInitializationFixture::AfterInitializationFixture()
     : error_observer_(new TestErrorObserver()) {
-  EXPECT_EQ(0, voe_base_->Init());
+  webrtc::Config config;
+  config.Set<webrtc::ExperimentalAgc>(new webrtc::ExperimentalAgc(false));
+  webrtc::AudioProcessing* audioproc = webrtc::AudioProcessing::Create(config);
+
+  EXPECT_EQ(0, voe_base_->Init(NULL, audioproc));
 
 #if defined(WEBRTC_ANDROID)
   EXPECT_EQ(0, voe_hardware_->SetLoudspeakerStatus(false));