diff --git a/wifi/test/wifi_standard/wifi_framework/wifi_manage/unittest/BUILD.gn b/wifi/test/wifi_standard/wifi_framework/wifi_manage/unittest/BUILD.gn index 750481111..8a95ddc69 100644 --- a/wifi/test/wifi_standard/wifi_framework/wifi_manage/unittest/BUILD.gn +++ b/wifi/test/wifi_standard/wifi_framework/wifi_manage/unittest/BUILD.gn @@ -70,7 +70,6 @@ ohos_unittest("manager_unittest") { "wifi_country_code_policy_test.cpp", "wifi_dumper_test.cpp", "wifi_internal_event_dispatcher_test.cpp", - "wifi_manager_test.cpp", "wifi_net_observer_test.cpp", "wifi_protect_test.cpp", "wifi_service_manager_test.cpp", diff --git a/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/arp_checker_test.cpp b/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/arp_checker_test.cpp index 52186f41b..fa683eed6 100644 --- a/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/arp_checker_test.cpp +++ b/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/arp_checker_test.cpp @@ -114,7 +114,7 @@ HWTEST_F(ArpCheckerTest, checkDnsValid_FAIL2, TestSize.Level1) std::string hostAddress = "192.168.3.66"; std::string secondDns = "socket"; pDnsChecker->socketCreated = true; - pDnsChecker->checkDnsValid(hostAddress, nullptr, 0); + pDnsChecker->checkDnsValid(hostAddress, "", 0); pDnsChecker->checkDnsValid(hostAddress, secondDns, 0); } diff --git a/wifi/test/wifi_standard/wifi_hal/unittest/wifi_hal_wpa_sta_test.cpp b/wifi/test/wifi_standard/wifi_hal/unittest/wifi_hal_wpa_sta_test.cpp index c7e54204d..cc87ac1c6 100644 --- a/wifi/test/wifi_standard/wifi_hal/unittest/wifi_hal_wpa_sta_test.cpp +++ b/wifi/test/wifi_standard/wifi_hal/unittest/wifi_hal_wpa_sta_test.cpp @@ -429,22 +429,6 @@ HWTEST_F(WifiHalWpaStaTest, WpaCliCmdWpaSetSuspendModeTest, TestSize.Level1) MockSetWpaExpectCmdResponse("DRIVER SETSUSPENDMODE", "OK"); EXPECT_TRUE(mInterface->wpaCliCmdWpaSetSuspendMode(mInterface, true) == 0); } - -HWTEST_F(WifiHalWpaStaTest, GetStaInterfaceNoTest, TestSize.Level1) -{ - char ifname[] = "SIGNAL_POLL"; - GetWifiStaInterface(0); - GetStaInterfaceNo(ifname); - EXPECT_TRUE(GetStaInterfaceNo(nullptr) < 0); -} - -HWTEST_F(WifiHalWpaStaTest, DelScanInfoLineTest, TestSize.Level1) -{ - char ifname[] = "\t15IGNwpa_state=SCANNING\\1024AL_POLL"; - ScanInfo *pcmd = nullptr; - DelScanInfoLine(pcmd, ifname, 1); - DelScanInfoLine(pcmd, ifname, 0); -} } // namespace Wifi } // namespace OHOS