summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Xie <dxie@google.com>2015-09-04 22:10:30 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-09-04 22:10:30 +0000
commit45101b8ebb8d2261c1733d305f5e165971ef7dc1 (patch)
tree4436717d100ff61279c0a332eded42738bd034a4
parent4fe837f0ea8682a7e4fd8802b88c9721de517192 (diff)
parent9f275caac3c90dac2d91c2faf94f4179c9d90fb7 (diff)
downloadlibcore-45101b8ebb8d2261c1733d305f5e165971ef7dc1.zip
libcore-45101b8ebb8d2261c1733d305f5e165971ef7dc1.tar.gz
libcore-45101b8ebb8d2261c1733d305f5e165971ef7dc1.tar.bz2
am 9f275caa: am 977acac8: Merge "Skip TimaKeyStore in KeyStoreTest" into kitkat-cts-dev
* commit '9f275caac3c90dac2d91c2faf94f4179c9d90fb7': Skip TimaKeyStore in KeyStoreTest
-rw-r--r--luni/src/test/java/libcore/java/security/KeyStoreTest.java3
-rw-r--r--support/src/test/java/libcore/java/security/StandardNames.java6
2 files changed, 8 insertions, 1 deletions
diff --git a/luni/src/test/java/libcore/java/security/KeyStoreTest.java b/luni/src/test/java/libcore/java/security/KeyStoreTest.java
index ddee6ce..47aa72a 100644
--- a/luni/src/test/java/libcore/java/security/KeyStoreTest.java
+++ b/luni/src/test/java/libcore/java/security/KeyStoreTest.java
@@ -170,7 +170,8 @@ public class KeyStoreTest extends TestCase {
// Don't bother testing BC on RI
// TODO enable AndroidKeyStore when CTS can set up the keystore
return (StandardNames.IS_RI && ks.getProvider().getName().equals("BC"))
- || "AndroidKeyStore".equalsIgnoreCase(ks.getType());
+ || "AndroidKeyStore".equalsIgnoreCase(ks.getType())
+ || "TimaKeyStore".equalsIgnoreCase(ks.getType());
}
private static boolean isNullPasswordAllowed(KeyStore ks) {
diff --git a/support/src/test/java/libcore/java/security/StandardNames.java b/support/src/test/java/libcore/java/security/StandardNames.java
index 33a9c43..dabe4f7 100644
--- a/support/src/test/java/libcore/java/security/StandardNames.java
+++ b/support/src/test/java/libcore/java/security/StandardNames.java
@@ -515,6 +515,12 @@ public final class StandardNames extends Assert {
if (Security.getProvider("AndroidKeyStore") != null) {
provide("KeyStore", "AndroidKeyStore");
}
+
+ // TimaKeyStore provider
+ if (Security.getProvider("TimaKeyStore") != null) {
+ provide("KeyStore", "TimaKeyStore");
+ }
+
}
}