Merge pull request !8019 from 吴冯山/master
This commit is contained in:
openharmony_ci 2024-10-14 02:51:41 +00:00 committed by Gitee
commit 31ce27abf9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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