mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-23 16:59:54 +00:00
fix ut
Signed-off-by: wufengshan <wufengshan1@huawei.com>
This commit is contained in:
parent
2e5e794673
commit
c2ff394762
@ -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