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

Commit d08bd1ff authored by Rubin Xu's avatar Rubin Xu
Browse files

Fix DevicePolicyManagerTest

Bug: 342244714
Test: FrameworksServicesTests:DevicePolicyManagerTest
Change-Id: I9b969753844e167f879f2e4dd3e04546dd420b70
parent 9a094858
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -7631,6 +7631,7 @@ public class DevicePolicyManagerTest extends DpmTestBase {

        addManagedProfile(admin1, managedProfileAdminUid, admin1);
        mContext.binder.callingUid = managedProfileAdminUid;
        when(getServices().userManager.isManagedProfile()).thenReturn(true);

        final Set<Integer> allowedModes = Set.of(PASSWORD_COMPLEXITY_NONE, PASSWORD_COMPLEXITY_LOW,
                PASSWORD_COMPLEXITY_MEDIUM, PASSWORD_COMPLEXITY_HIGH);