commit | 2ec353e7f44dcfe65ee15e00e2bd279fe76516fc | [log] [tgz] |
---|---|---|
author | Rubin Xu <rubinxu@google.com> | Wed Jan 07 16:41:49 2015 +0000 |
committer | Rubin Xu <rubinxu@google.com> | Wed Jan 07 16:41:49 2015 +0000 |
tree | eeafeece2925e47c0991475a7cdeb9cad311adcc | |
parent | 4530b5b3ddbce81c6cdd8931086050eeaf002650 [diff] |
Remove exception check in testWipeData CTS test After ag/567397, DevicePolicyManagerService.WipeData() will no longer raise a security exception when called with ERASE_EXTERNAL_STORAGE flag from a managed profile. As a result, we should no longer test for that exception path either. Bug: 18925478 Change-Id: I6982144956508d1bbed23cd2fd20383cce0838cb
diff --git a/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/WipeDataTest.java b/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/WipeDataTest.java index b548c96..76a9e44 100644 --- a/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/WipeDataTest.java +++ b/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/WipeDataTest.java
@@ -45,12 +45,6 @@ } public void testWipeData() throws InterruptedException { - try { - mDevicePolicyManager.wipeData(DevicePolicyManager.WIPE_EXTERNAL_STORAGE); - fail("Should not be able to wipe external storage from managed profile."); - } catch (SecurityException expected) { - } - UserHandle currentUser = Process.myUserHandle(); assertTrue(mUserManager.getUserProfiles().contains(currentUser));