mirror of
https://gitee.com/openharmony/communication_wifi.git
synced 2024-11-23 23:19:48 +00:00
tdd
Signed-off-by: sunjingqiang <17319862417@163.com>
This commit is contained in:
parent
92872460d3
commit
c86918797f
@ -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",
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user