Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4a8f23df authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Fix unit tests if universal_resizable_by_default is enabled

Currently WmTests declares target sdk 28. So if the test ActivityRecord
is assigned with the real WmTests package name, it can adopt the legacy
behavior by default.

For the tests that need to use mocked package names, mock its
application info directly.

Bug: 357141415
Flag: com.android.window.flags.universal_resizable_by_default
Test: DisplayRotationCompatPolicyTests
      ActivityRecordTests#testSetOrientation_restrictedByTargetSdk
      TransparentPolicyTest# \
          testTranslucentActivitiesDontGoInSizeCompatMode

Change-Id: Ic7a644f8739899f8a0578fca9878bf40940438ec
parent 8ac5a154
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment