Signed-off-by: wufengshan <wufengshan1@huawei.com>
This commit is contained in:
wufengshan 2024-10-12 16:46:42 +08:00
parent 2e5e794673
commit c2ff394762
3 changed files with 1 additions and 16 deletions

View File

@ -56,7 +56,6 @@ ohos_unittest("AuthNegotiateChannelTest") {
sources = [
"$dsoftbus_root_path/core/common/dfx/anonymize/src/anonymizer.c",
"$dsoftbus_root_path/core/common/utils/softbus_utils.c",
"$dsoftbus_root_path/tests/core/connection/wifi_direct_cpp/net_conn_client.cpp",
"$dsoftbus_root_path/tests/core/connection/wifi_direct_cpp/wifi_direct_mock.cpp",
"$wifi_direct_path/adapter/p2p_adapter.cpp",
@ -167,7 +166,6 @@ ohos_unittest("ProxyNegotiateChannelTest") {
sources = [
"$dsoftbus_root_path/core/common/dfx/anonymize/src/anonymizer.c",
"$dsoftbus_root_path/core/common/utils/softbus_utils.c",
"$dsoftbus_root_path/tests/core/connection/wifi_direct_cpp/net_conn_client.cpp",
"$dsoftbus_root_path/tests/core/connection/wifi_direct_cpp/wifi_direct_mock.cpp",
"$wifi_direct_path/adapter/p2p_adapter.cpp",

View File

@ -62,7 +62,7 @@ std::shared_ptr<AuthNegotiateChannel> AuthNegotiateChannelTest::NewAuthNegotiate
auto deviceId = context_.Get(TestContextKey::REMOTE_UUID, std::string(""));
EXPECT_CALL(mock, AuthGetDeviceUuid(_, _, _))
.WillRepeatedly([this](int64_t authId, char *uuid, uint16_t size) {
auto id = context_.Get(TestContextKey::REMOTE_UUID, std::string(""));;
auto id = context_.Get(TestContextKey::REMOTE_UUID, std::string(""));
EXPECT_EQ(EOK, strcpy_s(uuid, size, id.c_str()));
return SOFTBUS_OK;
});

View File

@ -474,19 +474,6 @@ HWTEST_F(WifiDirectUtilsTest, CheckLinkAtDfsChannelConflictTest, TestSize.Level1
EXPECT_EQ(ret, true);
}
/*
* @tc.name: GetInterfaceIpv6AddrTest
* @tc.desc: check GetInterfaceIpv6Addr method
* @tc.type: FUNC
* @tc.require:
*/
HWTEST_F(WifiDirectUtilsTest, GetInterfaceIpv6AddrTest, TestSize.Level1)
{
std::string interface = "wlan0";
auto ret = WifiDirectUtils::GetInterfaceIpv6Addr(interface);
EXPECT_EQ(ret, "");
}
/*
* @tc.name: WifiDirectAnonymizeIpTest
* @tc.desc: check WifiDirectAnonymizeIp method