mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-20 00:57:49 +01:00

Going through the coverage of audio_processing_fuzzer, it was noticed that it didn't cover AEC-m and AEC-2 code. Therefore this CL adds 2 fuzzer targets that only fuzz the previous generation echo cancellers. To avoid code duplication, the APM running code was broken out in a new GN target. We have also changed all fuzzing code to use the FuzzDataHelper class to avoid manual pointer arithmetic. Bug: webrtc:7820 Change-Id: Ifea3266e396b487952a736945577fccea15d0e01 Reviewed-on: https://webrtc-review.googlesource.com/36500 Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org> Reviewed-by: Sam Zackrisson <saza@webrtc.org> Commit-Queue: Alex Loiko <aleloi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#21638}
25 lines
875 B
C++
25 lines
875 B
C++
/*
|
|
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef TEST_FUZZERS_AUDIO_PROCESSING_FUZZER_HELPER_H_
|
|
#define TEST_FUZZERS_AUDIO_PROCESSING_FUZZER_HELPER_H_
|
|
|
|
#include <memory>
|
|
|
|
#include "modules/audio_processing/include/audio_processing.h"
|
|
#include "test/fuzzers/fuzz_data_helper.h"
|
|
namespace webrtc {
|
|
|
|
void FuzzAudioProcessing(test::FuzzDataHelper* fuzz_data,
|
|
std::unique_ptr<AudioProcessing> apm);
|
|
|
|
} // namespace webrtc
|
|
|
|
#endif // TEST_FUZZERS_AUDIO_PROCESSING_FUZZER_HELPER_H_
|