diff --git a/test/fuzzers/audio_processing_fuzzer_helper.cc b/test/fuzzers/audio_processing_fuzzer_helper.cc index bdf5f105e7..868532632f 100644 --- a/test/fuzzers/audio_processing_fuzzer_helper.cc +++ b/test/fuzzers/audio_processing_fuzzer_helper.cc @@ -114,6 +114,11 @@ void FuzzAudioProcessing(test::FuzzDataHelper* fuzz_data, } } + // Make calls to stats gathering functions to cover these + // codeways. + static_cast(apm->GetStatistics()); + static_cast(apm->GetStatistics(true)); + RTC_DCHECK_NE(apm_return_code, AudioProcessing::kBadDataLengthError); } }