summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2010-03-23 11:25:31 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-03-23 11:25:31 -0700
commita89e372db2c561e8001d70fe732f0d269207a72e (patch)
treed6dd42da20cebe5c605a3437a62bcbb5cee986fd /tests
parent1c4027b68d5938795cc536c1d45e8d942ea537a4 (diff)
parent2d66cef77e450ec4a4d725b89ae68c5e6b167bee (diff)
downloadframeworks_base-a89e372db2c561e8001d70fe732f0d269207a72e.zip
frameworks_base-a89e372db2c561e8001d70fe732f0d269207a72e.tar.gz
frameworks_base-a89e372db2c561e8001d70fe732f0d269207a72e.tar.bz2
Merge "Asec: Add new 'StorageNotFound' response code handling for container paths"
Diffstat (limited to 'tests')
-rwxr-xr-xtests/AndroidTests/src/com/android/unit_tests/AsecTests.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/AndroidTests/src/com/android/unit_tests/AsecTests.java b/tests/AndroidTests/src/com/android/unit_tests/AsecTests.java
index 9aed363..9a75047 100755
--- a/tests/AndroidTests/src/com/android/unit_tests/AsecTests.java
+++ b/tests/AndroidTests/src/com/android/unit_tests/AsecTests.java
@@ -259,6 +259,17 @@ public class AsecTests extends AndroidTestCase {
}
}
+ public void testNonExistPath() {
+ IMountService ms = getMs();
+ try {
+ String path = ms.getSecureContainerPath("jparks.broke.it");
+ failStr(path);
+ } catch (IllegalArgumentException e) {
+ } catch (Exception e) {
+ failStr(e);
+ }
+ }
+
public void testUnmountBusyContainer() {
IMountService ms = getMs();
try {