mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-23 06:20:07 +00:00
修改失败用例
Signed-off-by: 师皓杰 <shihaojie10@huawei.com>
This commit is contained in:
parent
b9072e9323
commit
a5f79e7c02
@ -52,23 +52,6 @@ void MMIAdapterTest::SetUp()
|
||||
MMIAdapter::GetInstance().Init();
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: AddMMIListener_001
|
||||
* @tc.desc: test AddMMIListener func
|
||||
* @tc.type: FUNC
|
||||
*/
|
||||
HWTEST_F(MMIAdapterTest, AddMMIListener_001, TestSize.Level3)
|
||||
{
|
||||
DTEST_LOG << "MMIAdapterTest AddMMIListener_001 begin" << std::endl;
|
||||
static const char *perms[] = {
|
||||
"ohos.permission.INPUT_MONITORING"
|
||||
};
|
||||
DistributedSchedUtil::MockProcessAndPermission("MMIAdapterTest", perms, sizeof(perms) / sizeof(perms[0]));
|
||||
int32_t ret = MMIAdapter::GetInstance().AddMMIListener();
|
||||
EXPECT_GT(ret, 0);
|
||||
DTEST_LOG << "MMIAdapterTest AddMMIListener_001 end" << std::endl;
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: RemoveMMIListener_001
|
||||
* @tc.desc: test RemoveMMIListener func
|
||||
|
Loading…
Reference in New Issue
Block a user