# Copyright (c) 2024 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") dsoftbus_root_path = "../../.." module_output_path = "dsoftbus/adapter" test_deps = [ "$dsoftbus_dfx_path/log:softbus_dfx_log", "$dsoftbus_root_path/core/common:softbus_utils", ] test_external_deps = [ "c_utils:utils", "googletest:gmock_main", "googletest:gtest_main", "hilog:libhilog", "json:nlohmann_json_static", ] ohos_unittest("LnnWifiServiceMonitorTest") { module_out_path = module_output_path sources = [ "$dsoftbus_root_path/tests/adapter/common/src/lnn_wifiservice_monitor_test.cpp" ] include_dirs = [ "$dsoftbus_root_path/adapter/common/include", "$dsoftbus_root_path/core/common/include", "$dsoftbus_root_path/adapter/common/net/wifi/include", "$dsoftbus_root_path/adapter/common/bus_center/include", "$dsoftbus_root_path/interfaces/kits/common", "$dsoftbus_root_path/core/bus_center/service/include", "$dsoftbus_root_path/interfaces/kits/bus_center", "$dsoftbus_root_path/core/bus_center/interface", "$dsoftbus_root_path/core/bus_center/ipc/standard/include", "$dsoftbus_root_path/sdk/frame/standard/include", "$dsoftbus_root_path/tests/core/bus_center/mock_common/include", "$dsoftbus_root_path/core/transmission/interface", "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", "$dsoftbus_root_path/core/common/include", "$dsoftbus_root_path/adapter/common/bus_center/wlan", "$dsoftbus_root_path/tests/adapter/common/src", "$dsoftbus_root_path/tests/adapter/common/include", "$dsoftbus_root_path/core/bus_center/utils/include", ] deps = test_deps external_deps = test_external_deps if (!defined(ohos_lite) && softbus_communication_wifi_feature == true) { external_deps += [ "ability_base:base", "ability_base:want", "ipc:ipc_core", "wifi:wifi_sdk", ] } } group("unittest") { testonly = true if (!defined(ohos_lite) && softbus_communication_wifi_feature == true) { deps = [ ":LnnWifiServiceMonitorTest" ] } }