commit | 1357a23bc128ec0e1083b14cc1a915a7f92a5b67 | [log] [tgz] |
---|---|---|
author | Sander Alewijnse <salewijnse@google.com> | Thu Feb 26 15:11:22 2015 +0000 |
committer | Sander Alewijnse <salewijnse@google.com> | Thu Feb 26 15:38:19 2015 +0000 |
tree | 983355bd24499bdcd4a660615b21b1e938cbeb01 | |
parent | ba89396666f5c35e774beb47b8f49491332c70c6 [diff] |
Add test for checking max users > 1 if managed users feature enabled Bug:19508052 Change-Id: I5449a2ab537be6afaef108275a294fefa73f4407
diff --git a/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java b/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java index e93121e..7da4228 100644 --- a/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java +++ b/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ManagedProfileTest.java
@@ -88,6 +88,14 @@ assertFalse(listUsers().contains(mUserId)); } + public void testMaxUsersStrictlyMoreThanOne() throws Exception { + if (hasDeviceFeature("android.software.managed_users")) { + assertTrue("Device must support more than 1 user " + + "if android.software.managed_users feature is available", + getMaxNumberOfUsersSupported() > 1); + } + } + public void testCrossProfileIntentFilters() throws Exception { if (!mHasFeature) { return;