diff options
| author | 2025-01-23 20:24:05 +0900 | |
|---|---|---|
| committer | 2025-01-23 21:54:35 +0900 | |
| commit | 41fda6b8cf1d42af48a99d149deffb8605da88be (patch) | |
| tree | 9db543683f2dfe688953439615b29cc301595967 /opengl/java | |
| parent | ba4eebc6eaafe98de5ac79035973a48ca33172c3 (diff) | |
Fix MultiDisplayVeiledResizeTaskPositionerTest failure
Kotlin 2.0 enforces stricter NonNull requirements, causing tests related
to `SurfaceControl.Transaction#setPosition` to fail.
These tests previously passed with Kotlin 1.9 without explicitly
handling the return value of `setPosition`, which now requires returning
a NonNull object.
This commit fixes the failing tests by explicitly returning the mocked
`Transaction` object when `setPosition` is called. And updated the
source code to use getLeash instead of directly getting `mTaskSurface`
in order to hijack the `setPosition` call.
Bug: 391717499
Test: atest
Flag: EXEMPT unblock presubmit
Change-Id: I081b6e7695aaba6d745d559b548eaa8b66b51d1f
Diffstat (limited to 'opengl/java')
0 files changed, 0 insertions, 0 deletions