1# Copyright (c) 2022 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 14#####################hydra-fuzz################### 15import("//build/config/features.gni") 16import("//build/test.gni") 17import("../../../../../distributedaudio.gni") 18 19##############################fuzztest########################################## 20ohos_fuzztest("SourceCtrlTransOnChannelEventFuzzTest") { 21 module_out_path = "${distributedaudio_fuzz_path}/sourcectrltransonchannelevent_fuzzer" 22 fuzz_config_file = 23 "${services_path}/audiotransport/test/fuzztest/sourcectrltransonchannelevent_fuzzer" 24 25 cflags = [ 26 "-g", 27 "-O0", 28 "-Wno-unused-variable", 29 "-fno-omit-frame-pointer", 30 ] 31 sources = [ "sourcectrltransonchannelevent_fuzzer.cpp" ] 32 33 include_dirs = [ 34 "include", 35 "${audio_client_path}/interface", 36 "${audio_client_path}/micclient/include", 37 "${audio_client_path}/spkclient/include", 38 "${audio_control_path}/controlsink/include", 39 "${audio_processor_path}/interface", 40 "${audio_transport_path}/interface", 41 "${audio_transport_path}/audioctrltransport/include", 42 "${audio_transport_path}/receiverengine/include", 43 "${audio_transport_path}/senderengine/include", 44 "${common_path}/dfx_utils/include", 45 "${common_path}/include", 46 "${innerkits_path}/native_cpp/audio_sink/include", 47 "${innerkits_path}/native_cpp/audio_source/include", 48 "${services_path}/audiomanager/managersink/include", 49 "${services_path}/common/audioeventcallback", 50 "${services_path}/common/audiodata/include", 51 "${services_path}/common/audioparam", 52 ] 53 54 deps = [ 55 "${services_path}/audiomanager/servicesink:distributed_audio_sink", 56 ] 57 58 defines = [ 59 "HI_LOG_ENABLE", 60 "DH_LOG_TAG=\"SourceCtrlTransOnChannelEventFuzzTest\"", 61 "LOG_DOMAIN=0xD004130", 62 ] 63 64 external_deps = [ 65 "c_utils:utils", 66 "cJSON:cjson", 67 "distributed_hardware_fwk:distributed_av_sender", 68 "distributed_hardware_fwk:distributedhardwareutils", 69 "ipc:ipc_core", 70 "safwk:system_ability_fwk", 71 "samgr:samgr_proxy", 72 "access_token:libaccesstoken_sdk", 73 "access_token:libtokenid_sdk", 74 "access_token:libtokensetproc_shared", 75 "audio_framework:audio_capturer", 76 "audio_framework:audio_client", 77 "audio_framework:audio_renderer", 78 "cJSON:cjson", 79 "c_utils:utils", 80 "device_manager:devicemanagersdk", 81 "distributed_hardware_fwk:distributed_av_receiver", 82 "distributed_hardware_fwk:distributed_av_sender", 83 "distributed_hardware_fwk:distributedhardwareutils", 84 "distributed_hardware_fwk:libdhfwk_sdk", 85 "dsoftbus:softbus_client", 86 "eventhandler:libeventhandler", 87 "hdf_core:libhdf_ipc_adapter", 88 "hdf_core:libhdi", 89 "hilog:libhilog", 90 "hisysevent:libhisysevent", 91 "hitrace:hitrace_meter", 92 "ipc:ipc_core", 93 "os_account:libaccountkits", 94 "os_account:os_account_innerkits", 95 "safwk:system_ability_fwk", 96 "samgr:samgr_proxy", 97 ] 98 99 100} 101 102############################################################################### 103group("fuzztest") { 104 testonly = true 105 deps = [ ":SourceCtrlTransOnChannelEventFuzzTest" ] 106} 107############################################################################### 108