Signed-off-by: lpf <liaopengfei@h-partners.com>

BUILD.gn修改, 编译通过
This commit is contained in:
lpf 2024-08-10 10:54:28 +08:00
parent 24dd342609
commit d86f8db1b2
2 changed files with 7 additions and 1 deletions

View File

@ -58,6 +58,10 @@ ohos_systemtest("wms_window_layout_test") {
sources = [ "window_layout_test.cpp" ]
include_dirs = [
"${window_base_path}/window_scene/test/mock",
]
deps = [
":wms_systemtest_common",
"${window_base_path}/window_scene/common:window_scene_common",

View File

@ -19,6 +19,8 @@
#include "wm_common.h"
#include "window_adapter.h"
#include "window_scene_session_impl.h"
#include "ability_context_impl.h"
#include "mock_session.h"
using namespace testing;
@ -1222,7 +1224,7 @@ HWTEST_F(WindowLayoutTest, resize08, Function | MediumTest | Level3)
ASSERT_EQ(WMError::WM_OK, window->Create(abilityContext_, session));
ASSERT_EQ(WMError::WM_ERROR_INVALID_WINDOW, window->Destroy(false));
ASSERT_EQ(WMError::WM_ERROR_REPEAT_OPERATION, window->Create(abilityContext_, session));
window->property_->SetPersistentId(10015);
WMError ret = window->Resize(-500, -500);