Home
last modified time | relevance | path

Searched refs:tlsSpec (Results 1 – 1 of 1) sorted by relevance

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DConnectionSpecTest.java61 ConnectionSpec tlsSpec = new ConnectionSpec.Builder(true) in tlsBuilder_explicitCiphers() local
66 assertEquals(Arrays.asList(CipherSuite.TLS_RSA_WITH_AES_128_CBC_SHA), tlsSpec.cipherSuites()); in tlsBuilder_explicitCiphers()
67 assertEquals(Arrays.asList(TlsVersion.TLS_1_2), tlsSpec.tlsVersions()); in tlsBuilder_explicitCiphers()
68 assertTrue(tlsSpec.supportsTlsExtensions()); in tlsBuilder_explicitCiphers()
72 ConnectionSpec tlsSpec = new ConnectionSpec.Builder(true) in tlsBuilder_defaultCiphers() local
76 assertNull(tlsSpec.cipherSuites()); in tlsBuilder_defaultCiphers()
77 assertEquals(Arrays.asList(TlsVersion.TLS_1_2), tlsSpec.tlsVersions()); in tlsBuilder_defaultCiphers()
78 assertTrue(tlsSpec.supportsTlsExtensions()); in tlsBuilder_defaultCiphers()
82 ConnectionSpec tlsSpec = new ConnectionSpec.Builder(true) in tls_defaultCiphers_noFallbackIndicator() local
97 assertTrue(tlsSpec.isCompatible(socket)); in tls_defaultCiphers_noFallbackIndicator()
[all …]