1# Copyright (c) 2021-2023 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_var.gni") 15 16import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") 17import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") 18import("//test/xts/tools/build/suite.gni") 19 20module_output_path = "hdf/bluetooth" 21root_path = 22 "../../../../../../drivers/peripheral/adapter/bluetooth/a2dp/hdi_service" 23 24ohos_moduletest_suite("HatsBluetootha2dpTest") { 25 module_out_path = module_output_path 26 sources = [ 27 "a2dp_services_test.cpp", 28 "bluetooth_hci_callback_impl.cpp", 29 ] 30 31 deps = [ 32 "${root_path}/utils/session:libbluetooth_audio_session", 33 "//third_party/googletest:gmock_main", 34 "//third_party/googletest:gtest_main", 35 ] 36 configs = [ ":hdf_bluetooth" ] 37 38 if (is_standard_system) { 39 external_deps = [ 40 "c_utils:utils", 41 "drivers_interface_bluetooth:libbluetooth_a2dp_proxy_1.0", 42 "drivers_interface_bluetooth:libbluetooth_hci_proxy_1.0", 43 "hdf_core:libhdf_host", 44 "hdf_core:libhdf_ipc_adapter", 45 "hdf_core:libhdf_utils", 46 "hdf_core:libhdi", 47 "hilog:libhilog", 48 ] 49 } else { 50 external_deps = [ "hilog:libhilog" ] 51 } 52 external_deps += [ "ipc:ipc_single" ] 53 54 subsystem_name = "xts" 55 part_name = "xts_hats" 56} 57 58config("hdf_bluetooth") { 59 include_dirs = [ 60 "include", 61 "${root_path}/hdi_service", 62 "${root_path}/hdi_service/utils/session", 63 ] 64} 65