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 "hostapd_hdi_direct_test.cpp", 27 "p2p_callback_impl.c", 28 "p2p_hdi_direct_test.cpp", 29 "wlan_callback_impl.c", 30 "wlan_hdi_direct_test.cpp", 31 "wlan_hdi_hal_services_c_test.cpp", 32 "wpa_callback_impl.c", 33 "wpa_hdi_direct_test.cpp", 34 ] 35 36 deps = [ 37 "$TEST_ROOT_DIR/hdi_service:hdi_wlan_service", 38 "//third_party/googletest:gmock_main", 39 "//third_party/googletest:gtest_main", 40 ] 41 42 include_dirs = [ "include" ] 43 44 if (is_standard_system) { 45 external_deps = [ 46 "c_utils:utils", 47 "drivers_interface_wlan:libhostapd_proxy_1.0", 48 "drivers_interface_wlan:libwlan_proxy_1.2", 49 "drivers_interface_wlan:libwpa_proxy_1.0", 50 "hdf_core:libhdf_host", 51 "hdf_core:libhdf_utils", 52 "hilog:libhilog", 53 ] 54 } else { 55 external_deps = [ "hilog:libhilog" ] 56 } 57} 58 59###########################end########################### 60group("unittest") { 61 testonly = true 62 deps = [ ":WlanHdiServiceTestC" ] 63} 64