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/test.gni") 15import("../../../../dsoftbus.gni") 16 17module_output_path = "dsoftbus/LNN" 18dsoftbus_root_path = "../../../.." 19 20ohos_unittest("LNNConnAddrUtilsTest") { 21 module_out_path = module_output_path 22 sources = [ "lnn_bus_center_utils_test.cpp" ] 23 include_dirs = [ 24 "$dsoftbus_root_path/core/bus_center/utils/include", 25 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 26 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 27 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 28 "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", 29 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/sync_info/include", 30 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 31 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 32 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 33 "$dsoftbus_root_path/core/bus_center/lnn/disc_mgr/include", 34 "$dsoftbus_root_path/core/bus_center/monitor/include", 35 "$dsoftbus_root_path/core/common/include", 36 "$dsoftbus_root_path/adapter/common/include", 37 "$dsoftbus_root_path/core/connection/interface", 38 "$dsoftbus_root_path/core/connection/p2p/interface", 39 "$dsoftbus_root_path/core/connection/p2p/common/include", 40 "$dsoftbus_root_path/core/authentication/interface", 41 "$dsoftbus_root_path/core/bus_center/interface", 42 "$dsoftbus_root_path/core/bus_center/utils/include", 43 "$dsoftbus_root_path/interfaces/kits/bus_center", 44 "$dsoftbus_root_path/interfaces/kits/common", 45 "$dsoftbus_root_path/core/adapter/bus_center/include", 46 "unittest/common/", 47 "$dsoftbus_root_path/core/connection/manager", 48 "$dsoftbus_root_path/adapter/common/bus_center/include/", 49 "$dsoftbus_root_path/core/discovery/manager/include", 50 "$dsoftbus_root_path/core/discovery/interface", 51 "$dsoftbus_root_path/interfaces/kits/discovery", 52 "$dsoftbus_root_path/core/bus_center/service/include", 53 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 54 ] 55 deps = [ 56 "$dsoftbus_root_path/adapter:softbus_adapter", 57 "$dsoftbus_root_path/core/common:softbus_utils", 58 "$dsoftbus_root_path/core/common/dfx/log:softbus_dfx_log", 59 "$dsoftbus_root_path/core/frame:softbus_server", 60 ] 61 if (is_standard_system) { 62 external_deps = [ 63 "c_utils:utils", 64 "device_auth:deviceauth_sdk", 65 "googletest:gmock", 66 "googletest:gtest_main", 67 "hilog:libhilog", 68 ] 69 } else { 70 external_deps = [ 71 "c_utils:utils", 72 "googletest:gmock", 73 "googletest:gtest_main", 74 "hilog:libhilog", 75 "huks:libhukssdk", 76 ] 77 } 78} 79 80group("unittest") { 81 testonly = true 82 deps = [ ":LNNConnAddrUtilsTest" ] 83} 84