mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-27 10:50:41 +00:00
commit
31ce27abf9
@ -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",
|
||||
|
@ -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;
|
||||
});
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user