mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-27 20:29:57 -04:00
fix: EncodePrivateSyscap input null point should return true.
Signed-off-by: yudechen <chenyude@huawei.com> Change-Id: I2ebf3fec0fd08a30763355f86ac7e35215016b61
This commit is contained in:
@@ -49,6 +49,9 @@ HWTEST_F(SyscapCodecTest, EncodePrivateSyscap, TestSize.Level1)
|
||||
char *charPriInput = nullptr;
|
||||
int priOutLen;
|
||||
EXPECT_TRUE(EncodePrivateSyscap(&charPriInput, &priOutLen));
|
||||
// Currently, private syscap is null.
|
||||
EXPECT_EQ(charPriInput, nullptr);
|
||||
EXPECT_EQ(priOutLen, 0);
|
||||
free(charPriInput);
|
||||
}
|
||||
|
||||
@@ -74,7 +77,7 @@ HWTEST_F(SyscapCodecTest, DecodeOsSyscap, TestSize.Level1)
|
||||
|
||||
/*
|
||||
* @tc.name: DecodePrivateSyscap
|
||||
* @tc.desc: Check the PrivateSyscap Decoding.
|
||||
* @tc.desc: Check the null PrivateSyscap Decoding.
|
||||
* @tc.type: FUNC
|
||||
*/
|
||||
HWTEST_F(SyscapCodecTest, DecodePrivateSyscap, TestSize.Level1)
|
||||
|
||||
Reference in New Issue
Block a user