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" 18ohos_unittest("LNNConnAddrUtilsTest") { 19 module_out_path = module_output_path 20 sources = [ "lnn_bus_center_utils_test.cpp" ] 21 include_dirs = [ 22 "$dsoftbus_root_path/core/bus_center/utils/include", 23 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 24 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 25 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 26 "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", 27 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/sync_info/include", 28 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 29 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 30 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 31 "$dsoftbus_root_path/core/bus_center/lnn/disc_mgr/include", 32 "$dsoftbus_root_path/core/bus_center/monitor/include", 33 "$dsoftbus_root_path/core/common/include", 34 "$dsoftbus_root_path/adapter/common/include", 35 "$dsoftbus_root_path/core/connection/interface", 36 "$dsoftbus_root_path/core/connection/p2p/interface", 37 "$dsoftbus_root_path/core/connection/p2p/common/include", 38 "$dsoftbus_root_path/core/authentication/interface", 39 "$dsoftbus_root_path/core/bus_center/interface", 40 "$dsoftbus_root_path/core/bus_center/utils/include", 41 "$dsoftbus_root_path/interfaces/kits/bus_center", 42 "$dsoftbus_root_path/interfaces/kits/common", 43 "$dsoftbus_root_path/core/adapter/bus_center/include", 44 "//commonlibrary/c_utils/base/include", 45 "//third_party/cJSON", 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/frame:softbus_server", 59 "//third_party/googletest:gmock", 60 "//third_party/googletest:gtest_main", 61 ] 62 if (is_standard_system) { 63 external_deps = [ 64 "c_utils:utils", 65 "device_auth:deviceauth_sdk", 66 "hilog:libhilog", 67 ] 68 } else { 69 external_deps = [ 70 "c_utils:utils", 71 "hilog:libhilog", 72 "huks:libhukssdk", 73 ] 74 } 75} 76 77group("unittest") { 78 testonly = true 79 deps = [ ":LNNConnAddrUtilsTest" ] 80} 81