summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2010-03-23 11:12:52 -0700
committerSan Mehat <san@google.com>2010-03-23 11:14:36 -0700
commit2d66cef77e450ec4a4d725b89ae68c5e6b167bee (patch)
tree701313dc61b7bcc9534cf8fe9513d667b303939d /tests
parent7f3e62cd921e7dfcdec1ed78ba2ef072beeecdd3 (diff)
downloadframeworks_base-2d66cef77e450ec4a4d725b89ae68c5e6b167bee.zip
frameworks_base-2d66cef77e450ec4a4d725b89ae68c5e6b167bee.tar.gz
frameworks_base-2d66cef77e450ec4a4d725b89ae68c5e6b167bee.tar.bz2
Asec: Add new 'StorageNotFound' response code handling for container paths
Change-Id: I45d113f77b9f0e519087356b70fc6c4b5c290935 Signed-off-by: San Mehat <san@google.com>
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 {