Signed-off-by: sunjingqiang <17319862417@163.com>
This commit is contained in:
sunjingqiang 2023-12-20 18:07:43 +08:00
parent 92872460d3
commit c86918797f
3 changed files with 1 additions and 18 deletions

View File

@ -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",

View File

@ -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);
}

View File

@ -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