diff --git a/services/dtbschedmgr/test/unittest/distributed_sched_permission_test.cpp b/services/dtbschedmgr/test/unittest/distributed_sched_permission_test.cpp index 750d1908b1729a74a46bba56eae30830b3fb5c14..f7b1dada64469dd195d9e34c821458bd9337c446 100644 --- a/services/dtbschedmgr/test/unittest/distributed_sched_permission_test.cpp +++ b/services/dtbschedmgr/test/unittest/distributed_sched_permission_test.cpp @@ -816,13 +816,11 @@ HWTEST_F(DistributedSchedPermissionTest, CheckBackgroundPermission_007, TestSize .tokenAttr = 0 }; - PermissionStateFull infoManagerTestState = { + Security::AccessToken::PermissionStatus infoManagerTestState = { .permissionName = "ohos.permission.START_INVISIBLE_ABILITY", - .isGeneral = true, - .resDeviceID = {"local"}, - .grantStatus = {PermissionState::PERMISSION_GRANTED}, // first grant - .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}}; - std::vector permStateList; + .grantStatus = PermissionState::PERMISSION_GRANTED, // first grant + .grantFlag = PermissionFlag::PERMISSION_SYSTEM_FIXED}; + std::vector permStateList; permStateList.emplace_back(infoManagerTestState); HapTokenInfoForSync remoteTokenInfo = { @@ -993,13 +991,11 @@ HWTEST_F(DistributedSchedPermissionTest, CheckTargetAbilityVisible_004, TestSize .tokenAttr = 0 }; - PermissionStateFull infoManagerTestState = { + Security::AccessToken::PermissionStatus infoManagerTestState = { .permissionName = "ohos.permission.START_INVISIBLE_ABILITY", - .isGeneral = true, - .resDeviceID = {"local"}, - .grantStatus = {PermissionState::PERMISSION_GRANTED}, // first grant - .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}}; - std::vector permStateList; + .grantStatus = PermissionState::PERMISSION_GRANTED, // first grant + .grantFlag = PermissionFlag::PERMISSION_SYSTEM_FIXED}; + std::vector permStateList; permStateList.emplace_back(infoManagerTestState); HapTokenInfoForSync remoteTokenInfo = { @@ -1048,13 +1044,11 @@ HWTEST_F(DistributedSchedPermissionTest, CheckTargetAbilityVisible_005, TestSize .tokenAttr = 0 }; - PermissionStateFull infoManagerTestState = { + Security::AccessToken::PermissionStatus infoManagerTestState = { .permissionName = "ohos.permission.START_INVISIBLE_ABILITY", - .isGeneral = true, - .resDeviceID = {"local"}, - .grantStatus = {PermissionState::PERMISSION_DENIED}, - .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}}; - std::vector permStateList; + .grantStatus = PermissionState::PERMISSION_DENIED, + .grantFlag = PermissionFlag::PERMISSION_SYSTEM_FIXED}; + std::vector permStateList; permStateList.emplace_back(infoManagerTestState); HapTokenInfoForSync remoteTokenInfo = {