Merge "Fix DevicePolicyManagerServiceMigrationTest."

This commit is contained in:
Pavel Grafov
2017-01-12 11:08:50 +00:00
committed by Android (Google) Code Review

View File

@@ -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());