diff --git a/test/unittest/light/light_agent_test.cpp b/test/unittest/light/light_agent_test.cpp index 4dd677fc4acd84d41ebb9c6b2437398ec10a3c73..1535369b558e88188611c3f1c60ad39596dcf190 100644 --- a/test/unittest/light/light_agent_test.cpp +++ b/test/unittest/light/light_agent_test.cpp @@ -33,16 +33,6 @@ using Security::AccessToken::AccessTokenID; namespace { constexpr int32_t TIME_WAIT_FOR_OP = 2; -PermissionDef g_infoManagerTestPermDef = { - .permissionName = "ohos.permission.SYSTEM_LIGHT_CONTROL", - .bundleName = "accesstoken_test", - .grantMode = 1, - .label = "label", - .labelId = 1, - .description = "test light agent", - .descriptionId = 1, - .availableLevel = APL_NORMAL -}; PermissionStateFull g_infoManagerTestState = { .grantFlags = {1}, @@ -55,7 +45,7 @@ PermissionStateFull g_infoManagerTestState = { HapPolicyParams g_infoManagerTestPolicyPrams = { .apl = APL_NORMAL, .domain = "test.domain", - .permList = {g_infoManagerTestPermDef}, + .permList = {}, .permStateList = {g_infoManagerTestState} }; diff --git a/test/unittest/vibrator/capi/vibrator_test.cpp b/test/unittest/vibrator/capi/vibrator_test.cpp index c71d38ac39a39580de32a1ab8e505f0d195a6b3a..34d6aea922d73483009b4a17d3bee94d2543a9d8 100644 --- a/test/unittest/vibrator/capi/vibrator_test.cpp +++ b/test/unittest/vibrator/capi/vibrator_test.cpp @@ -37,16 +37,6 @@ using Security::AccessToken::AccessTokenID; namespace { uint32_t g_duration = 300; constexpr int32_t TIME_WAIT_FOR_OP = 2; -PermissionDef infoManagerTestPermDef_ = { - .permissionName = "ohos.permission.VIBRATE", - .bundleName = "accesstoken_test", - .grantMode = 1, - .label = "label", - .labelId = 1, - .description = "native vibrator test", - .descriptionId = 1, - .availableLevel = APL_NORMAL -}; PermissionStateFull infoManagerTestState_ = { .grantFlags = {1}, @@ -59,7 +49,7 @@ PermissionStateFull infoManagerTestState_ = { HapPolicyParams infoManagerTestPolicyPrams_ = { .apl = APL_NORMAL, .domain = "test.domain", - .permList = {infoManagerTestPermDef_}, + .permList = {}, .permStateList = {infoManagerTestState_} }; diff --git a/test/unittest/vibrator/native/vibrator_agent_test.cpp b/test/unittest/vibrator/native/vibrator_agent_test.cpp index 7fd4d5d4eddcfb76e4ff57c0e28f670dc60bb813..b21f11f7842d65657015a362034d983524db8d8c 100644 --- a/test/unittest/vibrator/native/vibrator_agent_test.cpp +++ b/test/unittest/vibrator/native/vibrator_agent_test.cpp @@ -39,16 +39,6 @@ namespace { constexpr int32_t TIME_WAIT_FOR_OP = 2; const std::string PHONE_TYPE = "phone"; std::string g_deviceType; -PermissionDef g_infoManagerTestPermDef = { - .permissionName = "ohos.permission.VIBRATE", - .bundleName = "accesstoken_test", - .grantMode = 1, - .label = "label", - .labelId = 1, - .description = "test vibrator agent", - .descriptionId = 1, - .availableLevel = APL_NORMAL -}; PermissionStateFull g_infoManagerTestState = { .grantFlags = {1}, @@ -61,7 +51,7 @@ PermissionStateFull g_infoManagerTestState = { HapPolicyParams g_infoManagerTestPolicyPrams = { .apl = APL_NORMAL, .domain = "test.domain", - .permList = {g_infoManagerTestPermDef}, + .permList = {}, .permStateList = {g_infoManagerTestState} };