diff options
author | Kenny Root <kroot@google.com> | 2013-06-27 14:57:46 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-06-27 14:57:46 -0700 |
commit | b3933b979ddff8ff90ee7ac9ab2bbf33df1e1ec9 (patch) | |
tree | 5667a10e3f78e59b4245825ed33ab8084c4f8a94 /core/tests | |
parent | a2c8cbdd9598bae58a54aaea097705b2aa1779b8 (diff) | |
parent | 67f7d8fbd5ad84681fbdfea184ce538c6834896a (diff) | |
download | frameworks_base-b3933b979ddff8ff90ee7ac9ab2bbf33df1e1ec9.zip frameworks_base-b3933b979ddff8ff90ee7ac9ab2bbf33df1e1ec9.tar.gz frameworks_base-b3933b979ddff8ff90ee7ac9ab2bbf33df1e1ec9.tar.bz2 |
am 67f7d8fb: am 6c042b6d: am a5a2de55: Merge "Add ALPN support to SSL socket factory"
* commit '67f7d8fbd5ad84681fbdfea184ce538c6834896a':
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) { } |