diff options
author | Kenny Root <kroot@google.com> | 2013-06-27 14:52:17 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-06-27 14:52:17 -0700 |
commit | 6c042b6d678edea0f936da994f85ba62f9a1950e (patch) | |
tree | 69a09052f1c2ca430597a5563b3dc586f86fab38 /core/tests | |
parent | 9d2b0dbf67844ead1a0aeb22e1e3097d2ec60171 (diff) | |
parent | a5a2de55082b1f2a9ec0b99962a88063ac6d1bbf (diff) | |
download | frameworks_base-6c042b6d678edea0f936da994f85ba62f9a1950e.zip frameworks_base-6c042b6d678edea0f936da994f85ba62f9a1950e.tar.gz frameworks_base-6c042b6d678edea0f936da994f85ba62f9a1950e.tar.bz2 |
am a5a2de55: Merge "Add ALPN support to SSL socket factory"
* commit 'a5a2de55082b1f2a9ec0b99962a88063ac6d1bbf':
Add ALPN support to SSL socket factory
Diffstat (limited to 'core/tests')
-rw-r--r-- | core/tests/coretests/src/android/net/SSLTest.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/core/tests/coretests/src/android/net/SSLTest.java b/core/tests/coretests/src/android/net/SSLTest.java index 27b699d..45d28ae 100644 --- a/core/tests/coretests/src/android/net/SSLTest.java +++ b/core/tests/coretests/src/android/net/SSLTest.java @@ -49,35 +49,35 @@ public class SSLTest extends TestCase { // System.out.println(new String(b)); } - public void testStringsToNpnBytes() { + public void testStringsToLengthPrefixedBytes() { byte[] expected = { 6, 's', 'p', 'd', 'y', '/', '2', 8, 'h', 't', 't', 'p', '/', '1', '.', '1', }; - assertTrue(Arrays.equals(expected, SSLCertificateSocketFactory.toNpnProtocolsList( + assertTrue(Arrays.equals(expected, SSLCertificateSocketFactory.toLengthPrefixedList( new byte[] { 's', 'p', 'd', 'y', '/', '2' }, new byte[] { 'h', 't', 't', 'p', '/', '1', '.', '1' }))); } - public void testStringsToNpnBytesEmptyArray() { + public void testStringsToLengthPrefixedBytesEmptyArray() { try { - SSLCertificateSocketFactory.toNpnProtocolsList(); + SSLCertificateSocketFactory.toLengthPrefixedList(); fail(); } catch (IllegalArgumentException expected) { } } - public void testStringsToNpnBytesEmptyByteArray() { + public void testStringsToLengthPrefixedBytesEmptyByteArray() { try { - SSLCertificateSocketFactory.toNpnProtocolsList(new byte[0]); + SSLCertificateSocketFactory.toLengthPrefixedList(new byte[0]); fail(); } catch (IllegalArgumentException expected) { } } - public void testStringsToNpnBytesOversizedInput() { + public void testStringsToLengthPrefixedBytesOversizedInput() { try { - SSLCertificateSocketFactory.toNpnProtocolsList(new byte[256]); + SSLCertificateSocketFactory.toLengthPrefixedList(new byte[256]); fail(); } catch (IllegalArgumentException expected) { } |