1# Copyright (c) 2022 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/services/audiohdiproxy/daudio_hdi_handler" 20 21config("module_private_config") { 22 visibility = [ ":*" ] 23 24 include_dirs = [ "${fwk_common_path}/utils/include" ] 25 26 include_dirs += [ 27 "include", 28 "${common_path}/include", 29 "${services_path}/common/audiodata/include", 30 "${services_path}/common/audioparam", 31 "${services_path}/common/audiodata/include", 32 "${services_path}/audiohdiproxy/include", 33 ] 34} 35 36## UnitTest audiohdiproxy_test 37ohos_unittest("DAudioHdiHandlerTest") { 38 module_out_path = module_out_path 39 40 sources = [ "src/daudio_hdi_handler_test.cpp" ] 41 42 configs = [ ":module_private_config" ] 43 44 deps = [ 45 "${services_path}/audiomanager/servicesource:distributed_audio_source", 46 "//third_party/googletest:gmock", 47 "//third_party/googletest:gtest_main", 48 ] 49 50 external_deps = [ 51 "c_utils:utils", 52 "drivers_interface_distributed_audio:libdaudioext_proxy_1.0", 53 "ipc:ipc_core", 54 ] 55} 56 57group("daudio_hdi_handler_test") { 58 testonly = true 59 deps = [ ":DAudioHdiHandlerTest" ] 60} 61