1# Copyright (c) 2022-2024 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/test.gni") 15import("../../../../../distributedaudio.gni") 16 17module_out_path = "distributed_audio/services/audiomanager/source_manager_test" 18 19config("module_private_config") { 20 visibility = [ ":*" ] 21 22 include_dirs = [ 23 "include", 24 "${audio_control_path}/controlsource/include", 25 "${audio_hdi_proxy_path}/include", 26 "${audio_processor_path}/interface", 27 "${audio_transport_path}/audioctrltransport/interface", 28 "${audio_transport_path}/audiotransportstatus/include", 29 "${audio_transport_path}/audiotransportstatus/interface", 30 "${audio_transport_path}/interface", 31 "${audio_transport_path}/receiverengine/include", 32 "${audio_transport_path}/senderengine/include", 33 "${common_path}/include", 34 "${common_path}/dfx_utils/include", 35 "${distributedaudio_path}/audiohandler/include", 36 "${interfaces_path}/inner_kits/native_cpp/audio_sink/include", 37 "${interfaces_path}/inner_kits/native_cpp/audio_source/include", 38 "${innerkits_path}/native_cpp/audio_source/include", 39 "${innerkits_path}/native_cpp/audio_sink/include", 40 "${services_path}/audiomanager/managersource/include", 41 "${services_path}/audiomanager/servicesource/include", 42 "${services_path}/common/audiodata/include", 43 "${services_path}/common/audioeventcallback", 44 "${services_path}/common/audioparam", 45 "${services_path}/common/taskProcessor/include", 46 ] 47} 48 49## UnitTest daudio_source_mgr_test 50ohos_unittest("DaudioSourceMgrTest") { 51 module_out_path = module_out_path 52 53 sources = [ "src/daudio_source_mgr_test.cpp" ] 54 55 configs = [ ":module_private_config" ] 56 57 deps = [ 58 "${innerkits_path}/native_cpp/audio_source:distributed_audio_source_sdk", 59 "${services_path}/audiomanager/servicesource:distributed_audio_source", 60 "${services_path}/common:distributed_audio_utils", 61 ] 62 63 external_deps = [ 64 "audio_framework:audio_capturer", 65 "audio_framework:audio_client", 66 "audio_framework:audio_renderer", 67 "cJSON:cjson", 68 "c_utils:utils", 69 "distributed_hardware_fwk:distributed_av_receiver", 70 "distributed_hardware_fwk:distributed_av_sender", 71 "distributed_hardware_fwk:distributedhardwareutils", 72 "drivers_interface_distributed_audio:libdaudioext_proxy_2.0", 73 "dsoftbus:softbus_client", 74 "eventhandler:libeventhandler", 75 "googletest:gmock", 76 "hdf_core:libhdi", 77 "ipc:ipc_core", 78 "ipc:ipc_single", 79 "safwk:system_ability_fwk", 80 "samgr:samgr_proxy", 81 ] 82} 83 84group("daudio_source_mgr_test") { 85 testonly = true 86 deps = [ ":DaudioSourceMgrTest" ] 87} 88