1# Copyright (c) 2023 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/config/features.gni") 15import("//build/test.gni") 16import("../../../../config.gni") 17 18config("audio_adapter_fuzztest_config") { 19 visibility = [ "./*" ] 20 21 if (webview_audio_enable) { 22 defines = [ "NWEB_AUDIO_ENABLE" ] 23 } 24} 25 26group("fuzztest") { 27 testonly = true 28 deps = [] 29 if (webview_audio_enable) { 30 deps += [ 31 "audioabandon_fuzzer:AudioAbandonFuzzTest", 32 "audiocreaterender_fuzzer:AudioCreateRenderFuzzTest", 33 "audiodevicechange_fuzzer:AudioDeviceChangeFuzzTest", 34 "audiodevicechange_fuzzer:AudioDeviceChangeFuzzTest", 35 "audiogetchannel_fuzzer:AudioGetChannelFuzzTest", 36 "audiogetcontent_fuzzer:AudioGetContentFuzzTest", 37 "audiogetdevice_fuzzer:AudioGetDeviceFuzzTest", 38 "audiogetformat_fuzzer:AudioGetFormatFuzzTest", 39 "audiogetlatency_fuzzer:AudioGetLatencyFuzzTest", 40 "audiogetsampling_fuzzer:AudioGetSamplingFuzzTest", 41 "audiogetstream_fuzzer:AudioGetStreamFuzzTest", 42 "audioinputdevices_fuzzer:AudioInputDevicesFuzzTest", 43 "audiointerrupt_fuzzer:AudioInterruptFuzzTest", 44 "audiooutputdevices_fuzzer:AudioOutputDevicesFuzzTest", 45 "audioreleaserender_fuzzer:AudioReleaseRenderFuzzTest", 46 "audiorenderadapter_fuzzer:AudioRendererAdapterFuzzTest", 47 "audiorequest_fuzzer:AudioRequestFuzzTest", 48 "audiosetcallback_fuzzer:AudioSetCallbackFuzzTest", 49 "audiosetstreamtype_fuzzer:AudioSetStreamtypeFuzzTest", 50 "audiosetvolume_fuzzer:AudioSetVolumeFuzzTest", 51 "audiostartrender_fuzzer:AudioStartRenderFuzzTest", 52 "audiostoprender_fuzzer:AudioStopRenderFuzzTest", 53 "audiounsetcallback_fuzzer:AudioUnsetCallbackFuzzTest", 54 "audiowriterender_fuzzer:AudioWriteRenderFuzzTest", 55 ] 56 } 57} 58