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("//build/test.gni") 15 16TEST_ROOT_DIR = "../.." 17 18module_output_path = "drivers_peripheral_wlan/wlan" 19 20###########################palTest########################### 21 22ohos_unittest("WlanHdiServiceTestC") { 23 module_out_path = module_output_path 24 sources = [ 25 "hostapd_callback_impl.c", 26 "p2p_callback_impl.c", 27 "wlan_callback_impl.c", 28 "wlan_hdi_direct_test.cpp", 29 "wlan_hdi_hal_services_c_test.cpp", 30 "wpa_callback_impl.c", 31 ] 32 33 deps = [ 34 "$TEST_ROOT_DIR/hdi_service:hdi_wlan_service", 35 "//third_party/googletest:gmock_main", 36 "//third_party/googletest:gtest_main", 37 ] 38 39 include_dirs = [ "include" ] 40 41 if (is_standard_system) { 42 external_deps = [ 43 "c_utils:utils", 44 "drivers_interface_wlan:libhostapd_proxy_1.0", 45 "drivers_interface_wlan:libwlan_proxy_1.3", 46 "drivers_interface_wlan:libwpa_proxy_1.1", 47 "hdf_core:libhdf_host", 48 "hdf_core:libhdf_utils", 49 "hilog:libhilog", 50 ] 51 } else { 52 external_deps = [ "hilog:libhilog" ] 53 } 54} 55 56###########################end########################### 57group("unittest") { 58 testonly = true 59 deps = [ ":WlanHdiServiceTestC" ] 60} 61