146f34cbfSopenharmony_ci# Copyright (c) 2022-2023 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("../../../config.gni") 1746f34cbfSopenharmony_ci 1846f34cbfSopenharmony_ciohos_fuzztest("AudioServerFuzzTest") { 1946f34cbfSopenharmony_ci module_out_path = "audio_framework/audio_framework_route" 2046f34cbfSopenharmony_ci fuzz_config_file = "../audioserver_fuzzer" 2146f34cbfSopenharmony_ci 2246f34cbfSopenharmony_ci include_dirs = [ 2346f34cbfSopenharmony_ci "../../../frameworks/native/audioinnercall/include", 2446f34cbfSopenharmony_ci "../../../frameworks/native/hdiadapter/sink/common", 2546f34cbfSopenharmony_ci "../../../services/audio_service/server/include", 2646f34cbfSopenharmony_ci "../../../services/audio_policy/client/include", 2746f34cbfSopenharmony_ci ] 2846f34cbfSopenharmony_ci 2946f34cbfSopenharmony_ci cflags = [ 3046f34cbfSopenharmony_ci "-g", 3146f34cbfSopenharmony_ci "-O0", 3246f34cbfSopenharmony_ci "-Wno-unused-variable", 3346f34cbfSopenharmony_ci "-fno-omit-frame-pointer", 3446f34cbfSopenharmony_ci ] 3546f34cbfSopenharmony_ci 3646f34cbfSopenharmony_ci sources = [ "audio_server_fuzzer.cpp" ] 3746f34cbfSopenharmony_ci 3846f34cbfSopenharmony_ci configs = [ "../../../services/audio_service:audio_service_config" ] 3946f34cbfSopenharmony_ci 4046f34cbfSopenharmony_ci deps = [ 4146f34cbfSopenharmony_ci "../../../services/audio_policy:audio_policy_client", 4246f34cbfSopenharmony_ci "../../../services/audio_service:audio_service", 4346f34cbfSopenharmony_ci ] 4446f34cbfSopenharmony_ci external_deps = [ 4546f34cbfSopenharmony_ci "access_token:libaccesstoken_sdk", 4646f34cbfSopenharmony_ci "c_utils:utils", 4746f34cbfSopenharmony_ci "hdf_core:libhdi", 4846f34cbfSopenharmony_ci "hdf_core:libpub_utils", 4946f34cbfSopenharmony_ci "hilog:libhilog", 5046f34cbfSopenharmony_ci "ipc:ipc_single", 5146f34cbfSopenharmony_ci "pulseaudio:pulse", 5246f34cbfSopenharmony_ci "safwk:system_ability_fwk", 5346f34cbfSopenharmony_ci ] 5446f34cbfSopenharmony_ci} 5546f34cbfSopenharmony_ci 5646f34cbfSopenharmony_cigroup("fuzztest") { 5746f34cbfSopenharmony_ci testonly = true 5846f34cbfSopenharmony_ci deps = [ ":AudioServerFuzzTest" ] 5946f34cbfSopenharmony_ci} 60