add TDD ut case WindowAccessibilityController相关

Signed-off-by: 闫瀚林0424 <yanhanlin6@huawei.com>
Change-Id: I1dc7ad5660477e80ed270580abb5bbaa58952491
This commit is contained in:
闫瀚林0424 2024-10-30 13:44:24 +08:00
parent b3e7cdb7ec
commit 1b3c6936c6
2 changed files with 8 additions and 2 deletions

View File

@ -169,8 +169,6 @@ HWTEST_F(WindowDisplayZoomTest, DisplayZoom03, Function | MediumTest | Level3)
WindowAccessibilityController::GetInstance().SetAnchorAndScale(0, 0, 2);
sleep(1);
WindowAccessibilityController::GetInstance().SetAnchorOffset(0, 0);
sleep(1);
WindowAccessibilityController::GetInstance().OffWindowZoom();
sleep(1);

View File

@ -20,6 +20,7 @@
#include "accessibility_event_info.h"
#include "color_parser.h"
#include "mock_session.h"
#include "window_accessibility_controller.h"
#include "window_helper.h"
#include "window_session_impl.h"
#include "wm_common.h"
@ -2065,6 +2066,13 @@ HWTEST_F(WindowSessionImplTest4, ClearListenersById_switchFreeMultiWindowListene
ASSERT_EQ(window_->switchFreeMultiWindowListeners_.find(persistentId),
window_->switchFreeMultiWindowListeners_.end());
WindowAccessibilityController::GetInstance().SetAnchorAndScale(0, 0, 2);
sleep(1);
WindowAccessibilityController::GetInstance().SetAnchorOffset(0, 0);
sleep(1);
WindowAccessibilityController::GetInstance().OffWindowZoom();
sleep(1);
GTEST_LOG_(INFO) << "WindowSessionImplTest4: ClearListenersById_switchFreeMultiWindowListeners end";
}
}