# Copyright (c) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/lite/config/component/lite_component.gni") import("//build/ohos.gni") import("//build/test.gni") import("../../../../../core/common/dfx/dsoftbus_dfx.gni") import("../../../../../dsoftbus.gni") module_output_path = "dsoftbus/discovery" ohos_unittest("DiscNstackxAdapterTest") { module_out_path = module_output_path sources = [ "disc_nstackx_adapter_test.cpp" ] include_dirs = [ "../../../../../adapter/common/include", "../../../../../adapter/default_config/spec_config", "../../../../../components/nstackx/nstackx_util/interface", "../../../../../components/nstackx/nstackx_ctrl/include", "../../../../../core/bus_center/interface", "../../../../../core/bus_center/lnn/lane_hub/lane_manager/include", "../../../../../core/bus_center/lnn/net_ledger/common/include", "../../../../../core/bus_center/lnn/net_ledger/local_ledger/include", "../../../../../core/common/dfx/hidumper_adapter/include", "../../../../../core/common/include", "../../../../../core/discovery/ble/dispatcher/include", "../../../../../core/discovery/coap/interface", "../../../../../core/discovery/coap/nstackx_coap/include", "../../../../../core/discovery/coap/nstackx_coap/src", "../../../../../core/discovery/coap/common/include", "../../../../../core/discovery/interface", "../../../../../core/discovery/manager/include", "../../../../../interfaces/kits/common", ] deps = [ "$dsoftbus_dfx_path/log:softbus_dfx_log", "../../../../../components/nstackx/nstackx_ctrl:nstackx_ctrl", "../../../../../core/common:softbus_utils", "../../../../../core/frame:softbus_server", ] external_deps = [ "cJSON:cjson", "c_utils:utils", "googletest:gtest_main", "hilog:libhilog", ] } ohos_unittest("DiscCoapTest") { module_out_path = module_output_path sources = [ "disc_coap_test.cpp" ] include_dirs = [ "../../../../../adapter/common/include", "../../../../../adapter/default_config/spec_config", "../../../../../components/nstackx/nstackx_util/interface", "../../../../../core/bus_center/interface", "../../../../../core/bus_center/lnn/lane_hub/lane_manager/include", "../../../../../core/bus_center/lnn/net_ledger/common/include", "../../../../../core/bus_center/lnn/net_ledger/local_ledger/include", "../../../../../core/common/dfx/hidumper_adapter/include", "../../../../../core/common/include", "../../../../../core/discovery/ble/dispatcher/include", "../../../../../core/discovery/coap/interface", "../../../../../core/discovery/coap/nstackx_coap/include", "../../../../../core/discovery/coap/nstackx_coap/src", "../../../../../core/discovery/interface", "../../../../../core/discovery/manager/include", "../../../../../interfaces/kits/common", ] deps = [ "../../../../../components/nstackx/nstackx_ctrl:nstackx_ctrl", "../../../../../core/common:softbus_utils", "../../../../../core/frame:softbus_server", ] external_deps = [ "cJSON:cjson", "c_utils:utils", "googletest:gtest_main", "hilog:libhilog", ] } group("unittest") { testonly = true deps = [ ":DiscCoapTest", ":DiscNstackxAdapterTest", ] }