146f34cbfSopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd. 246f34cbfSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 346f34cbfSopenharmony_ci# you may not use this file except in compliance with the License. 446f34cbfSopenharmony_ci# You may obtain a copy of the License at 546f34cbfSopenharmony_ci# 646f34cbfSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 746f34cbfSopenharmony_ci# 846f34cbfSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 946f34cbfSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1046f34cbfSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1146f34cbfSopenharmony_ci# See the License for the specific language governing permissions and 1246f34cbfSopenharmony_ci# limitations under the License. 1346f34cbfSopenharmony_ci 1446f34cbfSopenharmony_ciimport("//build/config/features.gni") 1546f34cbfSopenharmony_ciimport("//build/test.gni") 1646f34cbfSopenharmony_ciimport("../../../accessibility.gni") 1746f34cbfSopenharmony_ciimport("../../../config.gni") 1846f34cbfSopenharmony_ciimport("../../../sensor.gni") 1946f34cbfSopenharmony_ciimport("../../../window_manager.gni") 2046f34cbfSopenharmony_ci 2146f34cbfSopenharmony_ciohos_fuzztest("AudioEffectManagerFuzzTest") { 2246f34cbfSopenharmony_ci module_out_path = "audio_framework/audio_framework_route" 2346f34cbfSopenharmony_ci fuzz_config_file = "../audioeffectmanager_fuzzer" 2446f34cbfSopenharmony_ci 2546f34cbfSopenharmony_ci include_dirs = [ 2646f34cbfSopenharmony_ci "../../../frameworks/native/audioeffect/include", 2746f34cbfSopenharmony_ci "../../../services/audio_policy/server/include/service", 2846f34cbfSopenharmony_ci "../../../services/audio_policy/server/include", 2946f34cbfSopenharmony_ci ] 3046f34cbfSopenharmony_ci cflags = [ 3146f34cbfSopenharmony_ci "-g", 3246f34cbfSopenharmony_ci "-O0", 3346f34cbfSopenharmony_ci "-Wno-unused-variable", 3446f34cbfSopenharmony_ci "-fno-omit-frame-pointer", 3546f34cbfSopenharmony_ci "-fno-access-control", 3646f34cbfSopenharmony_ci ] 3746f34cbfSopenharmony_ci configs = [ "../../../services/audio_policy:audio_policy_public_config" ] 3846f34cbfSopenharmony_ci 3946f34cbfSopenharmony_ci sources = [ "audio_effect_manager_fuzzer.cpp" ] 4046f34cbfSopenharmony_ci 4146f34cbfSopenharmony_ci deps = [ 4246f34cbfSopenharmony_ci "../../../frameworks/native/audioeffect:audio_effect", 4346f34cbfSopenharmony_ci "../../../frameworks/native/bluetoothclient:audio_bluetooth_client", 4446f34cbfSopenharmony_ci "../../../services/audio_policy:audio_policy_service", 4546f34cbfSopenharmony_ci ] 4646f34cbfSopenharmony_ci 4746f34cbfSopenharmony_ci external_deps = [ 4846f34cbfSopenharmony_ci "ability_base:want", 4946f34cbfSopenharmony_ci "ability_runtime:extension_manager", 5046f34cbfSopenharmony_ci "access_token:libaccesstoken_sdk", 5146f34cbfSopenharmony_ci "access_token:libnativetoken_shared", 5246f34cbfSopenharmony_ci "access_token:libprivacy_sdk", 5346f34cbfSopenharmony_ci "access_token:libtokenid_sdk", 5446f34cbfSopenharmony_ci "access_token:libtokensetproc_shared", 5546f34cbfSopenharmony_ci "bounds_checking_function:libsec_shared", 5646f34cbfSopenharmony_ci "bundle_framework:appexecfwk_base", 5746f34cbfSopenharmony_ci "bundle_framework:appexecfwk_core", 5846f34cbfSopenharmony_ci "c_utils:utils", 5946f34cbfSopenharmony_ci "data_share:datashare_common", 6046f34cbfSopenharmony_ci "data_share:datashare_consumer", 6146f34cbfSopenharmony_ci "drivers_interface_audio:libeffect_proxy_1.0", 6246f34cbfSopenharmony_ci "eventhandler:libeventhandler", 6346f34cbfSopenharmony_ci "hdf_core:libhdf_ipc_adapter", 6446f34cbfSopenharmony_ci "hdf_core:libhdf_utils", 6546f34cbfSopenharmony_ci "hdf_core:libhdi", 6646f34cbfSopenharmony_ci "hdf_core:libpub_utils", 6746f34cbfSopenharmony_ci "hicollie:libhicollie", 6846f34cbfSopenharmony_ci "hilog:libhilog", 6946f34cbfSopenharmony_ci "hisysevent:libhisysevent", 7046f34cbfSopenharmony_ci "hitrace:hitrace_meter", 7146f34cbfSopenharmony_ci "init:libbegetutil", 7246f34cbfSopenharmony_ci "ipc:ipc_single", 7346f34cbfSopenharmony_ci "kv_store:distributeddata_inner", 7446f34cbfSopenharmony_ci "media_foundation:media_monitor_client", 7546f34cbfSopenharmony_ci "media_foundation:media_monitor_common", 7646f34cbfSopenharmony_ci "os_account:os_account_innerkits", 7746f34cbfSopenharmony_ci "power_manager:powermgr_client", 7846f34cbfSopenharmony_ci "pulseaudio:pulse", 7946f34cbfSopenharmony_ci "relational_store:native_appdatafwk", 8046f34cbfSopenharmony_ci "safwk:system_ability_fwk", 8146f34cbfSopenharmony_ci "samgr:samgr_proxy", 8246f34cbfSopenharmony_ci ] 8346f34cbfSopenharmony_ci if (accessibility_enable == true) { 8446f34cbfSopenharmony_ci external_deps += [ 8546f34cbfSopenharmony_ci "accessibility:accessibility_common", 8646f34cbfSopenharmony_ci "accessibility:accessibilityconfig", 8746f34cbfSopenharmony_ci ] 8846f34cbfSopenharmony_ci } 8946f34cbfSopenharmony_ci if (sensor_enable == true) { 9046f34cbfSopenharmony_ci external_deps += [ "sensor:sensor_interface_native" ] 9146f34cbfSopenharmony_ci cflags += [ "-DSENSOR_ENABLE" ] 9246f34cbfSopenharmony_ci } 9346f34cbfSopenharmony_ci if (window_manager_enable == true) { 9446f34cbfSopenharmony_ci cflags += [ "-DWINDOW_MANAGER_ENABLE" ] 9546f34cbfSopenharmony_ci } 9646f34cbfSopenharmony_ci} 9746f34cbfSopenharmony_ci 9846f34cbfSopenharmony_cigroup("fuzztest") { 9946f34cbfSopenharmony_ci testonly = true 10046f34cbfSopenharmony_ci deps = [ ":AudioEffectManagerFuzzTest" ] 10146f34cbfSopenharmony_ci} 102