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

Commit feffb056 authored by Pavel Grafov's avatar Pavel Grafov
Browse files

Fix DevicePolicyManagerServiceMigrationTest.

DISALLOW_ADD_MANAGED_PROFILE is enabled for device owners by default
and should be expected for device owner after migration.

Test: runtest --path frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerServiceMigrationTest.java
Change-Id: I8e1d8bcf84a242fa50985d4fed9c3c594e19451a
parent 772ff11c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -183,7 +183,8 @@ public class DevicePolicyManagerServiceMigrationTest extends DpmTestBase {
        // Check the new owner restrictions.
        DpmTestUtils.assertRestrictions(
                DpmTestUtils.newRestrictions(
                        UserManager.DISALLOW_ADD_USER
                        UserManager.DISALLOW_ADD_USER,
                        UserManager.DISALLOW_ADD_MANAGED_PROFILE
                ),
                dpms.getDeviceOwnerAdminLocked().ensureUserRestrictions());