1# Copyright (c) 2021 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("//foundation/communication/dsoftbus/dsoftbus.gni") 16 17module_output_path = "dsoftbus/connection" 18 19ohos_unittest("softbus_conn_ble_test") { 20 module_out_path = module_output_path 21 include_dirs = [ 22 "$dsoftbus_root_path/interfaces/kits/common", 23 "$dsoftbus_root_path/interfaces/kits/discovery", 24 "$dsoftbus_root_path/interfaces/kits/bus_center", 25 "$softbus_adapter_common/include", 26 "$softbus_adapter_common/net/bluetooth/include", 27 "$dsoftbus_root_path/core/common/include", 28 "$dsoftbus_root_path/core/connection/interface", 29 "$dsoftbus_root_path/core/connection/manager", 30 "$dsoftbus_root_path/core/connection/tcp/include", 31 "$dsoftbus_root_path/core/connection/ble/include", 32 "$dsoftbus_root_path/core/connection/ble/src", 33 "$dsoftbus_root_path/core/bus_center/interface", 34 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 35 "$dsoftbus_root_path/core/discovery/interface", 36 "$dsoftbus_root_path/core/discovery/manager/include", 37 "//third_party/googletest/googletest/include", 38 "//third_party/googletest/googletest/src", 39 "//third_party/bounds_checking_function/include", 40 ] 41 42 deps = [ 43 "$dsoftbus_root_path/adapter:softbus_adapter", 44 "$dsoftbus_root_path/core/common:softbus_utils", 45 "$dsoftbus_root_path/core/frame:softbus_server", 46 "//third_party/bounds_checking_function:libsec_shared", 47 "//third_party/googletest:gmock_main", 48 "//third_party/googletest:gtest_main", 49 ] 50 51 external_deps = [ 52 "c_utils:utils", 53 "hiviewdfx_hilog_native:libhilog", 54 ] 55 sources = [ "connection_ble_test.cpp" ] 56} 57