mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-23 15:00:12 +00:00
UT修改
Signed-off-by: cjl <chenjunliang26@h-partners.com>
This commit is contained in:
parent
a5c41a661a
commit
5d6442bed0
@ -236,9 +236,10 @@ HWTEST_F(SceneSessionTest4, isNeedSystemPermissionByAction, Function | SmallTest
|
|||||||
{
|
{
|
||||||
sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr);
|
sptr<SceneSession> session = sptr<SceneSession>::MakeSptr(info, nullptr);
|
||||||
EXPECT_NE(session, nullptr);
|
EXPECT_NE(session, nullptr);
|
||||||
|
session.property_ = new WindowSessionProperty();
|
||||||
session->property_->SetWindowFlags(0);
|
session->property_->SetWindowFlags(0);
|
||||||
ASSERT_NE(session->GetSessionProperty(), nullptr);
|
auto sessionProperty = session->GetSessionProperty();
|
||||||
|
|
||||||
ASSERT_TRUE(sceneSession->isNeedSystemPermissionByAction(WSPropertyChangeAction::ACTION_UPDATE_TURN_SCREEN_ON,
|
ASSERT_TRUE(sceneSession->isNeedSystemPermissionByAction(WSPropertyChangeAction::ACTION_UPDATE_TURN_SCREEN_ON,
|
||||||
property, sessionProperty));
|
property, sessionProperty));
|
||||||
ASSERT_TRUE(sceneSession->isNeedSystemPermissionByAction(WSPropertyChangeAction::ACTION_UPDATE_FLAGS,
|
ASSERT_TRUE(sceneSession->isNeedSystemPermissionByAction(WSPropertyChangeAction::ACTION_UPDATE_FLAGS,
|
||||||
|
Loading…
Reference in New Issue
Block a user