1# Copyright (c) 2022-2025 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/ohos.gni") 15import("//build/ohos_var.gni") 16import("//build/test.gni") 17import("../../../../../distributedaudio.gni") 18 19module_out_path = "distributed_audio/distributed_audio/services/audiohdiproxy/daudio_hdi_handler" 20 21config("module_private_config") { 22 visibility = [ ":*" ] 23 24 include_dirs = [ 25 "include", 26 "${common_path}/include", 27 "${interfaces_path}/inner_kits/native_cpp/audio_source/include", 28 "${services_path}/common/audiodata/include", 29 "${services_path}/common/audioparam", 30 "${services_path}/common/audiodata/include", 31 "${services_path}/audiohdiproxy/include", 32 ] 33} 34 35## UnitTest audiohdiproxy_test 36ohos_unittest("DAudioHdiHandlerTest") { 37 module_out_path = module_out_path 38 39 sources = [ 40 "src/daudio_hdi_handler_test.cpp", 41 "src/mock_distributed_hardware_fwk_kit.cpp", 42 "${interfaces_path}/inner_kits/native_cpp/audio_source/src/daudio_hdf_operate.cpp", 43 ] 44 45 configs = [ ":module_private_config" ] 46 47 deps = 48 [ "${services_path}/audiomanager/servicesource:distributed_audio_source" ] 49 50 external_deps = [ 51 "cJSON:cjson", 52 "c_utils:utils", 53 "distributed_hardware_fwk:distributed_av_receiver", 54 "distributed_hardware_fwk:distributedhardwareutils", 55 "distributed_hardware_fwk:libdhfwk_sdk", 56 "drivers_interface_distributed_audio:libdaudioext_proxy_2.1", 57 "googletest:gmock", 58 "hdf_core:libhdf_ipc_adapter", 59 "hdf_core:libhdi", 60 "hdf_core:libpub_utils", 61 "hilog:libhilog", 62 "ipc:ipc_core", 63 ] 64} 65 66group("daudio_hdi_handler_test") { 67 testonly = true 68 deps = [ ":DAudioHdiHandlerTest" ] 69} 70