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" 18config("softbus_connection_br_test_config") { 19 include_dirs = [ 20 "$dsoftbus_root_path/core/common/include", 21 "$dsoftbus_root_path/core/adapter/br/include", 22 "$softbus_adapter_common/include", 23 "$dsoftbus_root_path/interfaces/kits/common", 24 "$dsoftbus_root_path/core/connection/interface", 25 "$dsoftbus_root_path/core/connection/manager", 26 "$dsoftbus_root_path/core/connection/tcp/include", 27 "$dsoftbus_root_path/core/connection/br/include", 28 "$dsoftbus_root_path/core/connection/br/src", 29 "$dsoftbus_root_path/interfaces/kits/common", 30 "$dsoftbus_root_path/interfaces/kits/discovery", 31 "$dsoftbus_root_path/interfaces/kits/bus_center", 32 "$softbus_adapter_common/net/bluetooth/include", 33 "$dsoftbus_root_path/core/common/include", 34 "$dsoftbus_root_path/core/connection/ble/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 43ohos_unittest("softbus_conn_br_test") { 44 module_out_path = module_output_path 45 public_configs = [ ":softbus_connection_br_test_config" ] 46 deps = [ 47 "$dsoftbus_root_path/adapter:softbus_adapter", 48 "$dsoftbus_root_path/core/common:softbus_utils", 49 "$dsoftbus_root_path/core/frame:softbus_server", 50 "//third_party/bounds_checking_function:libsec_shared", 51 "//third_party/googletest:gmock_main", 52 "//third_party/googletest:gtest_main", 53 ] 54 55 external_deps = [ 56 "c_utils:utils", 57 "hiviewdfx_hilog_native:libhilog", 58 ] 59 sources = [ "connection_br_test.cpp" ] 60} 61 62ohos_unittest("softbus_conn_br_manager_test") { 63 module_out_path = module_output_path 64 public_configs = [ ":softbus_connection_br_test_config" ] 65 deps = [ 66 "$dsoftbus_root_path/adapter:softbus_adapter", 67 "$dsoftbus_root_path/core/common:softbus_utils", 68 "$dsoftbus_root_path/core/frame:softbus_server", 69 "//third_party/bounds_checking_function:libsec_shared", 70 "//third_party/googletest:gmock_main", 71 "//third_party/googletest:gtest_main", 72 ] 73 74 external_deps = [ 75 "c_utils:utils", 76 "hiviewdfx_hilog_native:libhilog", 77 ] 78 sources = [ "connection_br_manager_test.cpp" ] 79} 80