SetIsMidScene添加TDD用例

Change-Id: Ib4883c77944be68ea1b3c954cbdbe3853a9f2c43
Signed-off-by: shiwz <1216470093@qq.com>
This commit is contained in:
shiwz 2024-11-04 22:11:24 +08:00
parent e849c3b85d
commit 71ccc7b3ae

View File

@ -764,6 +764,24 @@ HWTEST_F(SceneSessionTest3, CompatibleFullScreenRecover, Function | SmallTest |
ASSERT_EQ(WSError::WS_OK, sceneSession->CompatibleFullScreenRecover());
}
/**
* @tc.name: SetIsMidScene
* @tc.desc: SetIsMidScene
* @tc.type: FUNC
*/
HWTEST_F(SceneSessionTest3, SetIsMidScene, Function | SmallTest | Level2)
{
SessionInfo info;
info.abilityName_ = "SetIsMidScene";
info.bundleName_ = "SetIsMidScene";
sptr<SceneSession> sceneSession = sptr<SceneSession>::MakeSptr(info, nullptr);
EXPECT_NE(sceneSession, nullptr);
sceneSession->SetIsMidScene(true);
bool res = sceneSession->GetIsMidScene();
EXPECT_EQ(res, true);
}
/**
* @tc.name: SetIsPcAppInPad
* @tc.desc: SetIsPcAppInPad