1# Copyright (c) 2022-2025 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/lite/config/component/lite_component.gni") 15import("//build/ohos.gni") 16import("//build/test.gni") 17import("../../../../dsoftbus.gni") 18import("../../../utils/utils.gni") 19 20module_output_path = "dsoftbus/soft_bus/discovery" 21 22ohos_unittest("DiscClientOnDeviceFoundTest") { 23 module_out_path = module_output_path 24 sources = [ 25 "$dsoftbus_root_path/core/bus_center/ipc/standard/src/lnn_bus_center_ipc.cpp", 26 "$dsoftbus_root_path/core/frame/common/src/softbus_ddos.c", 27 "disc_client_on_device_found_test.cpp", 28 "$dsoftbus_root_path/core/frame/init/src/g_enhance_lnn_func.c", 29 ] 30 31 include_dirs = [ 32 "$dsoftbus_dfx_path/interface/include/form", 33 "$dsoftbus_root_path/adapter/common/include", 34 "$dsoftbus_root_path/core/authentication/interface", 35 "$dsoftbus_root_path/core/bus_center/interface", 36 "$dsoftbus_root_path/core/bus_center/ipc/include", 37 "$dsoftbus_root_path/core/bus_center/ipc/standard/include", 38 "$dsoftbus_root_path/core/bus_center/lnn/decision_center/include", 39 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 40 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 41 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/time_sync/include", 42 "$dsoftbus_root_path/core/bus_center/lnn/meta_node/include", 43 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 44 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 45 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 46 "$dsoftbus_root_path/core/bus_center/service/include", 47 "$dsoftbus_root_path/core/bus_center/utils/include", 48 "$dsoftbus_root_path/core/common/include", 49 "$dsoftbus_root_path/core/connection/interface", 50 "$dsoftbus_root_path/core/discovery/interface", 51 "$dsoftbus_root_path/core/discovery/manager/include", 52 "$dsoftbus_root_path/core/frame/common/include", 53 "$dsoftbus_root_path/core/frame/init/include", 54 "$dsoftbus_root_path/interfaces/inner_kits/lnn", 55 "$dsoftbus_root_path/interfaces/inner_kits/transport", 56 "$dsoftbus_root_path/interfaces/kits/adapter", 57 "$dsoftbus_root_path/interfaces/kits/authentication", 58 "$dsoftbus_root_path/interfaces/kits/authentication/enhance", 59 "$dsoftbus_root_path/interfaces/kits/bus_center", 60 "$dsoftbus_root_path/interfaces/kits/common", 61 "$dsoftbus_root_path/interfaces/kits/connect", 62 "$dsoftbus_root_path/interfaces/kits/disc", 63 "$dsoftbus_root_path/interfaces/kits/discovery", 64 "$dsoftbus_root_path/interfaces/kits/lnn", 65 "$dsoftbus_root_path/interfaces/kits/lnn/enhance", 66 "$dsoftbus_root_path/interfaces/kits/transport", 67 ] 68 69 deps = [ 70 "$dsoftbus_dfx_path:softbus_dfx", 71 "$dsoftbus_root_path/adapter:softbus_adapter", 72 "$dsoftbus_root_path/core/common:softbus_utils", 73 ] 74 75 external_deps = [ 76 "c_utils:utils", 77 "googletest:gmock", 78 "googletest:gtest_main", 79 "hilog:libhilog", 80 "ipc:ipc_single", 81 "cJSON:cjson", 82 ] 83} 84 85group("unittest") { 86 testonly = true 87 deps = [ ":DiscClientOnDeviceFoundTest" ] 88} 89