From 71ccc7b3ae64996e95ce5f6075e68446e0a68f1b Mon Sep 17 00:00:00 2001 From: shiwz <1216470093@qq.com> Date: Mon, 4 Nov 2024 22:11:24 +0800 Subject: [PATCH] =?UTF-8?q?SetIsMidScene=E6=B7=BB=E5=8A=A0TDD=E7=94=A8?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ib4883c77944be68ea1b3c954cbdbe3853a9f2c43 Signed-off-by: shiwz <1216470093@qq.com> --- .../test/unittest/scene_session_test3.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/window_scene/test/unittest/scene_session_test3.cpp b/window_scene/test/unittest/scene_session_test3.cpp index 6edc275fb3..3370a310e4 100644 --- a/window_scene/test/unittest/scene_session_test3.cpp +++ b/window_scene/test/unittest/scene_session_test3.cpp @@ -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 = sptr::MakeSptr(info, nullptr); + EXPECT_NE(sceneSession, nullptr); + + sceneSession->SetIsMidScene(true); + bool res = sceneSession->GetIsMidScene(); + EXPECT_EQ(res, true); +} + /** * @tc.name: SetIsPcAppInPad * @tc.desc: SetIsPcAppInPad