mirror of
https://gitee.com/openharmony/security_code_signature
synced 2024-11-23 06:10:10 +00:00
commit
9c705a840c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user