Fuzz key presses in APM
This calls webrtc::AudioProcessing::set_stream_key_pressed, which opens up a lot of code paths in the transient suppressor. The change breaks historical fuzzer test cases. Bug: webrtc:9413 Change-Id: I1f593a98286c7e7c0fc6751d16df40ad813dbd70 Reviewed-on: https://webrtc-review.googlesource.com/86950 Reviewed-by: Alex Loiko <aleloi@webrtc.org> Commit-Queue: Sam Zackrisson <saza@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23840}
This commit is contained in:
parent
f9c2952837
commit
1f5de53a8c
@ -86,6 +86,9 @@ void FuzzAudioProcessing(test::FuzzDataHelper* fuzz_data,
|
||||
// API call needed for AEC-2 and AEC-m to run.
|
||||
apm->set_stream_delay_ms(stream_delay);
|
||||
|
||||
const bool key_pressed = fuzz_data->ReadOrDefaultValue(true);
|
||||
apm->set_stream_key_pressed(key_pressed);
|
||||
|
||||
// Make the APM call depending on capture/render mode and float /
|
||||
// fix interface.
|
||||
const bool is_capture = fuzz_data->ReadOrDefaultValue(true);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user