add UT code

Signed-off-by: yanzhimo1 <yanzhimo1@huawei.com>
This commit is contained in:
yanzhimo1 2024-08-08 19:45:42 +08:00
parent 68f229c49d
commit 82a8042acc

View File

@ -1735,7 +1735,7 @@ HWTEST_F(WindowSessionTest2, ShouldCreateDetectTask, Function | SmallTest | Leve
{
DetectTaskInfo detectTaskInfo;
detectTaskInfo.taskState = DetectTaskState::ATTACH_TASK;
detectTaskInfo.taskWindowMode = WindowMode::WINDOW_MDDE_FULLSCREEN;
detectTaskInfo.taskWindowMode = WindowMode::WINDOW_MODE_FULLSCREEN;
session_->SetDetectTaskInfo(detectTaskInfo);
bool ret = session_->ShouldCreateDetectTask(true, WindowMode::WINDOW_MODE_UNDEFINED);
ASSERT_EQ(ret, true);