| test(rotation): complete SetCurrentRotation UT coverage Add test cases for SetCurrentRotation method across all layers: - SceneSession: normal flow and sessionStage nullptr scenarios - SessionStageProxy: IPC failure branches coverage - WindowSessionImpl: boundary values and property verification - Enable ENABLE_MOCK_WRITE_INT32 in BUILD.gn Co-Authored-By: Agent Signed-off-by: ZihaoWU <wuzihao11@huawei.com> | 2 个月前 |
| add code Signed-off-by: ZihaoWU <wuzihao11@huawei.com> | 3 个月前 |
| add code Signed-off-by: ZihaoWU <wuzihao11@huawei.com> | 3 个月前 |
| add code Signed-off-by: ZihaoWU <wuzihao11@huawei.com> | 3 个月前 |
| feat: IsAncestorChainForeground add float window handling and optimize UT - Add WINDOW_TYPE_FLOAT special handling: stop traversal when float window is foreground, return false when background - Merge duplicate IsSessionForeground checks (scheme B) - Remove redundant SubWindowWithForegroundMain case - Add SubWindowWithForegroundFloatParent and SubWindowWithBackgroundFloatParent Co-Authored-By: Agent Signed-off-by: ZihaoWU <wuzihao11@huawei.com> | 2 个月前 |
| test(rotation): complete SetCurrentRotation UT coverage Add test cases for SetCurrentRotation method across all layers: - SceneSession: normal flow and sessionStage nullptr scenarios - SessionStageProxy: IPC failure branches coverage - WindowSessionImpl: boundary values and property verification - Enable ENABLE_MOCK_WRITE_INT32 in BUILD.gn Co-Authored-By: Agent Signed-off-by: ZihaoWU <wuzihao11@huawei.com> | 2 个月前 |
| add code Signed-off-by: w724-hao <wuzihao11@huawei.com> | 3 个月前 |
| add code Signed-off-by: ZihaoWU <wuzihao11@huawei.com> | 2 个月前 |
| add code Signed-off-by: ZihaoWU <wuzihao11@huawei.com> | 3 个月前 |
| feat: add test cases for setPreferredOrientationWithResult interface - Add 35 test cases covering all key branches - WindowSessionImpl: 14 tests (HandleSetOrientationCommon x7, SetPreferredOrientationWithResult x4, RegisterNotifyOrientationExecutionResultFunc x1, NotifyOrientationExecutionResult x2) - SceneSession: 4 tests (SetPreferredOrientationWithResult x2, NotifyOrientationExecutionResult x2) - SessionProxy: 7 tests (SetPreferredOrientationWithResult x7) - SessionStub: 2 tests (HandleSetPreferredOrientationWithResult x2) - SessionStageProxy: 5 tests (NotifyOrientationExecutionResult x5) - SessionStageStub: 3 tests (HandleNotifyOrientationExecutionResult x3) - Update mock classes to support new methods - All tests follow UT design principles: verify return values only, no function call validation Signed-off-by: ZihaoWU <wuzihao11@huawei.com> Co-Authored-By: Agent | 3 个月前 |
| 使用clang-format格式化window_scene tdd代码 Signed-off-by: yangjianping <yangjianping3@huawei.com> | 1 年前 |