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/lite/config/component/lite_component.gni") 15import("//build/ohos.gni") 16import("//build/test.gni") 17import("../../../../../core/common/dfx/dsoftbus_dfx.gni") 18import("../../../../../dsoftbus.gni") 19 20module_output_path = "dsoftbus/discovery" 21 22ohos_unittest("DiscNstackxAdapterTest") { 23 module_out_path = module_output_path 24 sources = [ "disc_nstackx_adapter_test.cpp" ] 25 26 include_dirs = [ 27 "../../../../../adapter/common/include", 28 "../../../../../adapter/default_config/spec_config", 29 "../../../../../components/nstackx/nstackx_util/interface", 30 "../../../../../components/nstackx/nstackx_ctrl/include", 31 "../../../../../core/bus_center/interface", 32 "../../../../../core/bus_center/lnn/lane_hub/lane_manager/include", 33 "../../../../../core/bus_center/lnn/net_ledger/common/include", 34 "../../../../../core/bus_center/lnn/net_ledger/local_ledger/include", 35 "../../../../../core/common/dfx/hidumper_adapter/include", 36 "../../../../../core/common/include", 37 "../../../../../core/discovery/ble/dispatcher/include", 38 "../../../../../core/discovery/coap/interface", 39 "../../../../../core/discovery/coap/nstackx_coap/include", 40 "../../../../../core/discovery/coap/nstackx_coap/src", 41 "../../../../../core/discovery/coap/common/include", 42 "../../../../../core/discovery/interface", 43 "../../../../../core/discovery/manager/include", 44 "../../../../../interfaces/kits/common", 45 ] 46 47 deps = [ 48 "$dsoftbus_dfx_path/log:softbus_dfx_log", 49 "../../../../../components/nstackx/nstackx_ctrl:nstackx_ctrl", 50 "../../../../../core/common:softbus_utils", 51 "../../../../../core/frame:softbus_server", 52 ] 53 54 external_deps = [ 55 "cJSON:cjson", 56 "c_utils:utils", 57 "googletest:gtest_main", 58 "hilog:libhilog", 59 ] 60} 61 62ohos_unittest("DiscCoapTest") { 63 module_out_path = module_output_path 64 sources = [ "disc_coap_test.cpp" ] 65 66 include_dirs = [ 67 "../../../../../adapter/common/include", 68 "../../../../../adapter/default_config/spec_config", 69 "../../../../../components/nstackx/nstackx_util/interface", 70 "../../../../../core/bus_center/interface", 71 "../../../../../core/bus_center/lnn/lane_hub/lane_manager/include", 72 "../../../../../core/bus_center/lnn/net_ledger/common/include", 73 "../../../../../core/bus_center/lnn/net_ledger/local_ledger/include", 74 "../../../../../core/common/dfx/hidumper_adapter/include", 75 "../../../../../core/common/include", 76 "../../../../../core/discovery/ble/dispatcher/include", 77 "../../../../../core/discovery/coap/interface", 78 "../../../../../core/discovery/coap/nstackx_coap/include", 79 "../../../../../core/discovery/coap/nstackx_coap/src", 80 "../../../../../core/discovery/interface", 81 "../../../../../core/discovery/manager/include", 82 "../../../../../interfaces/kits/common", 83 ] 84 85 deps = [ 86 "../../../../../components/nstackx/nstackx_ctrl:nstackx_ctrl", 87 "../../../../../core/common:softbus_utils", 88 "../../../../../core/frame:softbus_server", 89 ] 90 91 external_deps = [ 92 "cJSON:cjson", 93 "c_utils:utils", 94 "googletest:gtest_main", 95 "hilog:libhilog", 96 ] 97} 98 99group("unittest") { 100 testonly = true 101 deps = [ 102 ":DiscCoapTest", 103 ":DiscNstackxAdapterTest", 104 ] 105} 106