mirror of
https://gitee.com/openharmony/msdp_device_status
synced 2024-11-23 15:40:16 +00:00
update frameworks/native/interaction/test/unittest/src/mouse_location_listener_test.cpp.
Signed-off-by: 李少雄 <lishaoxiong10@huawei.com>
This commit is contained in:
parent
e466cab6ee
commit
01c5afcb71
@ -40,6 +40,7 @@ namespace Msdp {
|
||||
namespace DeviceStatus {
|
||||
using namespace testing::ext;
|
||||
namespace {
|
||||
const std::string COOPERATE_ACCESS_PERMISSION { "ohos.permission.COOPERATE_MANAGER" };
|
||||
const std::string DM_SERVICE_ACCESS_PERMISSION { "ohos.permission.ACCESS_SERVICE_DM" };
|
||||
const std::string DM_SERVICE_ACCESS_NEWPERMISSION { "ohos.permission.DISTRIBUTED_DATASYNC" };
|
||||
const std::string PKG_NAME_PREFIX { "DBinderBus_Dms_" };
|
||||
@ -60,10 +61,10 @@ void MouseLocationListenerTest::SetUpTestCase() {}
|
||||
|
||||
void MouseLocationListenerTest::SetUp()
|
||||
{
|
||||
const int32_t permsNum = 2;
|
||||
const char *perms[permsNum];
|
||||
perms[0] = DM_SERVICE_ACCESS_NEWPERMISSION.c_str();
|
||||
perms[1] = DM_SERVICE_ACCESS_PERMISSION.c_str();
|
||||
const int32_t permsNum = 3;
|
||||
|
||||
const char *perms[] = {DM_SERVICE_ACCESS_NEWPERMISSION.c_str(), DM_SERVICE_ACCESS_PERMISSION.c_str(),
|
||||
COOPERATE_ACCESS_PERMISSION.c_str()};
|
||||
NativeTokenInfoParams infoInstance = {
|
||||
.dcapsNum = 0,
|
||||
.permsNum = permsNum,
|
||||
|
Loading…
Reference in New Issue
Block a user