mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-23 06:20:07 +00:00
add ut
Signed-off-by: 师皓杰 <shihaojie10@huawei.com>
This commit is contained in:
parent
de9b4be465
commit
ff2f07f8cf
@ -1769,5 +1769,24 @@ HWTEST_F(DistributedSchedPermissionTest, GetDeviceSecurityLevel_001, TestSize.Le
|
||||
EXPECT_NE(ret, 0);
|
||||
DTEST_LOG << "DistributedSchedPermissionTest GetDeviceSecurityLevel_001 end " << std::endl;
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: CheckAclList_001
|
||||
* @tc.desc: call CheckAclList
|
||||
* @tc.type: FUNC
|
||||
* @tc.require: I5RWIV
|
||||
*/
|
||||
HWTEST_F(DistributedSchedPermissionTest, CheckAclList_001, TestSize.Level3)
|
||||
{
|
||||
DTEST_LOG << "DistributedSchedPermissionTest CheckAclList_001 begin" << std::endl;
|
||||
std::string dstNetworkId;
|
||||
IDistributedSched::AccountInfo dmsAccountInfo;
|
||||
CallerInfo callerInfo;
|
||||
DistributedSchedPermission::GetInstance().GetOsAccountData(dmsAccountInfo);
|
||||
DistributedSchedPermission::GetInstance().CheckDstSameAccount(dstNetworkId, dmsAccountInfo, callerInfo);
|
||||
bool ret = DistributedSchedPermission::GetInstance().CheckAclList(dstNetworkId, dmsAccountInfo, callerInfo);
|
||||
EXPECT_EQ(ret, false);
|
||||
DTEST_LOG << "DistributedSchedPermissionTest CheckAclList_001 end result:" << ret << std::endl;
|
||||
}
|
||||
} // namespace DistributedSchedule
|
||||
} // namespace OHOS
|
Loading…
Reference in New Issue
Block a user