1# Copyright (c) 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/test.gni") 16import("../../../../config.gni") 17 18module_output_path = "multimedia_audio_framework/bluetooth_client" 19 20config("bluetooth_client_private_config") { 21 visibility = [ ":*" ] 22 23 include_dirs = [ 24 "../", 25 "../../audioutils/include", 26 "../../../../interfaces/inner_api/native/audiocommon/include", 27 "../../../../interfaces/inner_api/native/audiomanager/include", 28 "../../../../services/audio_policy/server/include/service/interface", 29 "../../../../services/audio_service/client/include", 30 ] 31} 32 33ohos_unittest("bluetooth_sco_manager_unit_test") { 34 module_out_path = module_output_path 35 testonly = true 36 cflags = [ 37 "-Wall", 38 "-Werror", 39 "-fno-access-control", 40 ] 41 sources = [ 42 "bluetooth_sco_manager_test.cpp", 43 "../bluetooth_sco_manager.cpp", 44 "../bluetooth_device_utils.cpp", 45 ] 46 47 configs = [ ":bluetooth_client_private_config" ] 48 49 deps = [ 50 "../../audioutils:audio_utils", 51 ] 52 53 external_deps = [ 54 "c_utils:utils", 55 "googletest:gtest", 56 "googletest:gmock", 57 "hilog:libhilog", 58 "hisysevent:libhisysevent", 59 "ipc:ipc_single", 60 "safwk:system_ability_fwk", 61 "samgr:samgr_proxy", 62 "bluetooth:btframework", 63 ] 64} 65 66ohos_unittest("bluetooth_hfp_manager_unit_test") { 67 module_out_path = module_output_path 68 testonly = true 69 cflags = [ 70 "-Wall", 71 "-Werror", 72 "-fno-access-control", 73 ] 74 sources = [ 75 "bluetooth_hfp_manager_test.cpp", 76 "../bluetooth_sco_manager.cpp", 77 "../bluetooth_device_utils.cpp", 78 "../audio_bluetooth_manager.cpp", 79 "../bluetooth_device_manager.cpp", 80 ] 81 82 configs = [ ":bluetooth_client_private_config" ] 83 84 deps = [ 85 "../../audioutils:audio_utils", 86 "../../../../services/audio_policy:audio_foundation", 87 ] 88 89 external_deps = [ 90 "c_utils:utils", 91 "googletest:gtest", 92 "googletest:gmock", 93 "hilog:libhilog", 94 "hisysevent:libhisysevent", 95 "ipc:ipc_single", 96 "safwk:system_ability_fwk", 97 "samgr:samgr_proxy", 98 "bluetooth:btframework", 99 ] 100} 101