# Copyright (c) 2024 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/config/features.gni") import("//build/test.gni") import("../../../config.gni") ohos_fuzztest("AudioStreamFuzzTest") { module_out_path = "audio_framework/audio_framework_route" fuzz_config_file = "../audiostream_fuzzer" include_dirs = [ "../../../frameworks/native/audioinnercall/include", "../../../frameworks/native/hdiadapter/sink/common", "../../../services/audio_service/server/include", "../../../services/audio_policy/client/include", ] cflags = [ "-g", "-O0", "-Wno-unused-variable", "-fno-omit-frame-pointer", "-fno-access-control", ] sources = [ "audio_stream_fuzzer.cpp" ] configs = [ "../../../services/audio_service:audio_service_config" ] deps = [ "../../../services/audio_policy:audio_policy_client", "../../../services/audio_service:audio_process_service", "../../../services/audio_service:audio_service", ] external_deps = [ "ability_runtime:extension_manager", "access_token:libaccesstoken_sdk", "access_token:libnativetoken_shared", "access_token:libtokensetproc_shared", "c_utils:utils", "hdf_core:libhdi", "hdf_core:libpub_utils", "hilog:libhilog", "init:libbegetutil", "ipc:ipc_single", "pulseaudio:pulse", "safwk:system_ability_fwk", ] } group("fuzztest") { testonly = true deps = [ ":AudioStreamFuzzTest" ] }