Always enable 'delay-agnostic' in APM fuzzer.
This 'fixes' a bug in the non-delay-agnostic code by not fuzzing it.
We plan to always enable the delay-agnostic feature. In Chrome,
delay-agnostic mode is always on:
https://cs.chromium.org/chromium/src/content/renderer/media/stream/media_stream_audio_processor.cc?l=579
Bug: chromium:824638 webrtc:9423
Change-Id: I3d9cac2bc11857fd55549d13c52db4c99dec956c
Reviewed-on: https://webrtc-review.googlesource.com/83984
Commit-Queue: Alex Loiko <aleloi@webrtc.org>
Reviewed-by: Sam Zackrisson <saza@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23651}
diff --git a/test/fuzzers/audio_processing_configs_fuzzer.cc b/test/fuzzers/audio_processing_configs_fuzzer.cc
index d0e58af..41b3c71 100644
--- a/test/fuzzers/audio_processing_configs_fuzzer.cc
+++ b/test/fuzzers/audio_processing_configs_fuzzer.cc
@@ -47,7 +47,7 @@
bool bf = fuzz_data->ReadOrDefaultValue(true);
bool ef = fuzz_data->ReadOrDefaultValue(true);
bool raf = fuzz_data->ReadOrDefaultValue(true);
- bool da = fuzz_data->ReadOrDefaultValue(true);
+ static_cast<void>(fuzz_data->ReadOrDefaultValue(true));
bool ie = fuzz_data->ReadOrDefaultValue(true);
bool red = fuzz_data->ReadOrDefaultValue(true);
bool hpf = fuzz_data->ReadOrDefaultValue(true);
@@ -108,7 +108,7 @@
}
config.Set<ExtendedFilter>(new ExtendedFilter(ef));
config.Set<RefinedAdaptiveFilter>(new RefinedAdaptiveFilter(raf));
- config.Set<DelayAgnostic>(new DelayAgnostic(da));
+ config.Set<DelayAgnostic>(new DelayAgnostic(true));
config.Set<Intelligibility>(new Intelligibility(ie));
std::unique_ptr<AudioProcessing> apm(