1# Copyright (C) 2021-2023 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("../../../../tools/build/suite.gni") 15 16module_output_path = "dcts/softbus_base/dsoftbusTest" 17dsoftbus_root_path = "../../../../../../foundation/communication/dsoftbus" 18wifi_root_path = "../../../../../../foundation/communication/wifi/wifi" 19 20ohos_moduletest_suite("dsoftbusTest") { 21 module_out_path = module_output_path 22 sources = [ 23 "../common/net_trans_common.c", 24 "../common/wifi_utils.cpp", 25 "./dsoftbusTest.cpp", 26 ] 27 28 include_dirs = [ 29 "../common", 30 31 "$dsoftbus_root_path/core/common/include", 32 "$dsoftbus_root_path/adapter/common/include", 33 "$dsoftbus_root_path/interfaces/kits/common", 34 "$dsoftbus_root_path/interfaces/kits/bus_center", 35 "$dsoftbus_root_path/interfaces/kits/discovery", 36 "$dsoftbus_root_path/interfaces/kits/transport", 37 38 "$wifi_root_path/frameworks/native/include", 39 "$wifi_root_path/frameworks/native/interfaces", 40 41 "$wifi_root_path/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper", 42 "$wifi_root_path/services/wifi_standard/wifi_framework/wifi_toolkit/log", 43 ] 44 45 deps = [ "//third_party/googletest:gtest_main" ] 46 external_deps = [ 47 "access_token:libaccesstoken_sdk", 48 "access_token:libnativetoken", 49 "access_token:libtoken_setproc", 50 "c_utils:utils", 51 "dsoftbus:softbus_client", 52 "ipc:ipc_core", 53 "wifi:wifi_sdk", 54 ] 55 subsystem_name = "communication" 56 part_name = "dsoftbus" 57} 58