!226 修复tdd用例

Merge pull request !226 from luyifan/master
This commit is contained in:
openharmony_ci 2024-10-18 08:03:27 +00:00 committed by Gitee
commit 9c705a840c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -94,8 +94,8 @@ HWTEST_F(CodeSignAttrUtilsTest, CodeSignAttrUtilsTest_0003, TestSize.Level0)
EXPECT_EQ(ConvertIdType(PROCESS_OWNERID_DEBUG, "1"), PROCESS_OWNERID_DEBUG);
// test app not in list, retval is OWNERID_APP
EXPECT_EQ(ConvertIdType(PROCESS_OWNERID_APP, "1"), PROCESS_OWNERID_APP);
// test OWNERID_APP_TEMPA_ALLOW, retval is origin idType
EXPECT_EQ(ConvertIdType(PROCESS_OWNERID_APP_TEMP_ALLOW, "1"), PROCESS_OWNERID_APP_TEMP_ALLOW);
// test OWNERID_APP_TEMPA_ALLOW, retval is OWNERID_APP
EXPECT_EQ(ConvertIdType(PROCESS_OWNERID_APP_TEMP_ALLOW, "1"), PROCESS_OWNERID_APP);
// test nullptr
EXPECT_EQ(ConvertIdType(PROCESS_OWNERID_APP, nullptr), PROCESS_OWNERID_APP);
}