cleancode超大函数处理

Signed-off-by: zhudaodong <zhudaodong1@huawei.com>
This commit is contained in:
zhudaodong 2024-06-05 14:22:00 +08:00
parent 00e8d2a2e6
commit 62f4da2937

View File

@ -463,7 +463,9 @@ HWTEST_F(WindowLayoutTest, LayoutTile01, Function | MediumTest | Level3)
};
const sptr<Window>& window = Utils::CreateTestWindow(info);
ASSERT_NE(window, nullptr);
if (window == nullptr) {
return;
}
activeWindows_.push_back(window);
Rect expect = Utils::GetDefaultFloatingRect(window, true);
ASSERT_EQ(WMError::WM_OK, window->Show());
@ -524,7 +526,9 @@ HWTEST_F(WindowLayoutTest, LayoutTileNegative01, Function | MediumTest | Level3)
.needAvoid = true, .parentLimit = false, .parentId = INVALID_WINDOW_ID,
};
const sptr<Window>& window = Utils::CreateTestWindow(info);
ASSERT_NE(window, nullptr);
if (window == nullptr) {
return;
}
activeWindows_.push_back(window);
ASSERT_EQ(WMError::WM_OK, window->Show());
usleep(WAIT_SYANC_US);