update tests/core/transmission/trans_channel/udp_negotiation/trans_udp_nego_test.cpp.

Signed-off-by: 张再尧 <zhangzaiyao@huawei.com>
This commit is contained in:
张再尧 2022-11-02 11:24:32 +00:00 committed by Gitee
parent a2f1d6cb63
commit 45e17b6c96
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -35,6 +35,7 @@ using namespace testing::ext;
namespace OHOS {
#define INVALID_ID (-1)
#define INVALID_SEQ (-1)
#define INVALID_AUTH_ID (-2)
class TransUdpNegoTest : public testing::Test {
@ -267,7 +268,7 @@ HWTEST_F(TransUdpNegoTest, TransUdpNegoTest009, TestSize.Level1)
{
int64_t authId = AUTH_INVALID_ID;
AuthTransData data;
int32_t ret = memset_s(&channel, sizeof(UdpChannelInfo), 0, sizeof(UdpChannelInfo));
EXPECT_TRUE(ret == SOFTBUS_OK);
UdpModuleCb(authId, NULL);