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

Commit 1c03c26b authored by Ang Li's avatar Ang Li
Browse files

Add tests for flag-gated intent extras in RestrictedLockUtils

Adds unit tests for the `getShowAdminSupportDetailsIntent(EnforcingAdmin)` method to verify its behavior with the `enforcingAdminExtraEnabled` and `enforcingAdminGetComponentNameEnabled` feature flags.

These tests ensure that the `EXTRA_ENFORCING_ADMIN` and `EXTRA_DEVICE_ADMIN` intent extras are correctly added or omitted based on the state of their respective flags. Scenarios for null admins and admins with or without a component name are also covered.

Please help fill out the survey for feedback: https://forms.gle/Qz9q5boo4h4tESyd7

Original Change: ag/35143890
Bug: 431235865
Flag: TEST_ONLY

ABTD Links: http://go/forrest-run/L28700030016847958

Change-Id: Ie2746dd6fdf6d4b209d7b188ff16eeb1bda4e0bf
parent 01a10553
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