diff options
author | Alex Klyubin <klyubin@google.com> | 2015-04-01 17:07:35 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-04-01 17:07:35 +0000 |
commit | 36294d6fa996abbbccca4cc9771d5f006b079eb6 (patch) | |
tree | 86d47b461589082a17b20f460e1d89565b02efe7 /luni | |
parent | 2c390bf2c6dc2d27d8e99296f5fc74c6dde8c0af (diff) | |
parent | 8cac87765c3cc1014e2d9ba2486d9d0d63541853 (diff) | |
download | libcore-36294d6fa996abbbccca4cc9771d5f006b079eb6.zip libcore-36294d6fa996abbbccca4cc9771d5f006b079eb6.tar.gz libcore-36294d6fa996abbbccca4cc9771d5f006b079eb6.tar.bz2 |
Merge "Fix KeyGeneratorTest breakage due to AndroidKeyStore."
Diffstat (limited to 'luni')
-rw-r--r-- | luni/src/test/java/libcore/java/security/KeyPairGeneratorTest.java | 5 | ||||
-rw-r--r-- | luni/src/test/java/libcore/javax/crypto/KeyGeneratorTest.java | 9 |
2 files changed, 13 insertions, 1 deletions
diff --git a/luni/src/test/java/libcore/java/security/KeyPairGeneratorTest.java b/luni/src/test/java/libcore/java/security/KeyPairGeneratorTest.java index e7fdb1f..7e08b5f 100644 --- a/luni/src/test/java/libcore/java/security/KeyPairGeneratorTest.java +++ b/luni/src/test/java/libcore/java/security/KeyPairGeneratorTest.java @@ -121,7 +121,10 @@ public class KeyPairGeneratorTest extends TestCase { } String algorithm = service.getAlgorithm(); - // AndroidKeyStore is tested in CTS. + // Do not test AndroidKeyStore's KeyPairGenerator. It cannot be initialized without + // providing AndroidKeyStore-specific algorithm parameters. + // It's OKish not to test AndroidKeyStore's KeyPairGenerator here because it's tested + // by cts/tests/test/keystore. if ("AndroidKeyStore".equals(provider.getName())) { continue; } diff --git a/luni/src/test/java/libcore/javax/crypto/KeyGeneratorTest.java b/luni/src/test/java/libcore/javax/crypto/KeyGeneratorTest.java index 8bbd548..5763562 100644 --- a/luni/src/test/java/libcore/javax/crypto/KeyGeneratorTest.java +++ b/luni/src/test/java/libcore/javax/crypto/KeyGeneratorTest.java @@ -44,6 +44,15 @@ public class KeyGeneratorTest extends TestCase { if (!type.equals("KeyGenerator")) { continue; } + + // Do not test AndroidKeyStore's KeyGenerator. It cannot be initialized without + // providing AndroidKeyStore-specific algorithm parameters. + // It's OKish not to test AndroidKeyStore's KeyGenerator here because it's tested + // by cts/tests/test/keystore. + if ("AndroidKeyStore".equals(provider.getName())) { + continue; + } + String algorithm = service.getAlgorithm(); try { // KeyGenerator.getInstance(String) |