Update configuration of builtin AECs in APM fuzzer
The old pointer-to-submodule interface is replaced with
AudioProcessing::Config settings.
Bug: webrtc:9535
Change-Id: I5580d690fdd7664f48fa274b39f12cc41f69da37
Reviewed-on: https://webrtc-review.googlesource.com/102020
Reviewed-by: Alex Loiko <aleloi@webrtc.org>
Commit-Queue: Sam Zackrisson <saza@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24847}
diff --git a/test/fuzzers/audio_processing_configs_fuzzer.cc b/test/fuzzers/audio_processing_configs_fuzzer.cc
index e24f837..58ddcdb 100644
--- a/test/fuzzers/audio_processing_configs_fuzzer.cc
+++ b/test/fuzzers/audio_processing_configs_fuzzer.cc
@@ -133,6 +133,8 @@
absl::make_unique<testing::NiceMock<webrtc::test::MockAecDump>>());
webrtc::AudioProcessing::Config apm_config;
+ apm_config.echo_canceller.enabled = use_aec || use_aecm;
+ apm_config.echo_canceller.mobile_mode = use_aecm;
apm_config.residual_echo_detector.enabled = red;
apm_config.high_pass_filter.enabled = hpf;
apm_config.gain_controller2.enabled = use_agc2_limiter;
@@ -141,8 +143,6 @@
apm->ApplyConfig(apm_config);
- apm->echo_cancellation()->Enable(use_aec);
- apm->echo_control_mobile()->Enable(use_aecm);
apm->gain_control()->Enable(use_agc);
apm->noise_suppression()->Enable(use_ns);
apm->level_estimator()->Enable(use_le);