| Index: webrtc/modules/audio_processing/level_controller/level_controller_complexity_unittest.cc
|
| diff --git a/webrtc/modules/audio_processing/level_controller/level_controller_complexity_unittest.cc b/webrtc/modules/audio_processing/level_controller/level_controller_complexity_unittest.cc
|
| index a90774fbc12bad663eabff17c178d450c768ca4f..b8033aa14446685b31996734562378d555054aa3 100644
|
| --- a/webrtc/modules/audio_processing/level_controller/level_controller_complexity_unittest.cc
|
| +++ b/webrtc/modules/audio_processing/level_controller/level_controller_complexity_unittest.cc
|
| @@ -198,16 +198,18 @@ void RunTogetherWithApm(std::string test_description,
|
| SubmodulePerformanceTimer capture_timer;
|
| SubmodulePerformanceTimer total_timer;
|
|
|
| - Config config;
|
| + webrtc::Config config;
|
| + AudioProcessing::Config apm_config;
|
| if (include_default_apm_processing) {
|
| config.Set<DelayAgnostic>(new DelayAgnostic(true));
|
| config.Set<ExtendedFilter>(new ExtendedFilter(true));
|
| }
|
| - config.Set<LevelControl>(new LevelControl(true));
|
| + apm_config.level_controller.enabled = true;
|
|
|
| std::unique_ptr<AudioProcessing> apm;
|
| apm.reset(AudioProcessing::Create(config));
|
| ASSERT_TRUE(apm.get());
|
| + apm->ApplyConfig(apm_config);
|
|
|
| ASSERT_EQ(AudioProcessing::kNoError,
|
| apm->gain_control()->Enable(include_default_apm_processing));
|
|
|