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