Home
last modified time | relevance | path

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

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/tls/
DCertificatePinnerChainValidationTest.java79 .setSocketPolicy(SocketPolicy.DISCONNECT_AT_END)); in pinRootNotPresentInChain()
89 .setSocketPolicy(SocketPolicy.DISCONNECT_AT_END)); in pinRootNotPresentInChain()
134 .setSocketPolicy(SocketPolicy.DISCONNECT_AT_END)); in pinIntermediatePresentInChain()
144 .setSocketPolicy(SocketPolicy.DISCONNECT_AT_END)); in pinIntermediatePresentInChain()
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DDispatcher.java36 return new MockResponse().setSocketPolicy(SocketPolicy.KEEP_OPEN); in peek()
DMockResponse.java226 public MockResponse setSocketPolicy(SocketPolicy socketPolicy) { in setSocketPolicy() method in MockResponse
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DDispatcher.java34 return new MockResponse().setSocketPolicy(SocketPolicy.KEEP_OPEN); in peek()
DMockResponse.java192 public MockResponse setSocketPolicy(SocketPolicy socketPolicy) { in setSocketPolicy() method in MockResponse
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DConnectionReuseTest.java93 .setSocketPolicy(SocketPolicy.DISCONNECT_AT_END) in connectionsAreNotReusedWithUnknownLengthResponseBody()
151 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.DISCONNECT_AFTER_REQUEST)); in silentRetryWhenIdempotentRequestFailsOnReusedConnection()
170 .setSocketPolicy(SocketPolicy.SHUTDOWN_OUTPUT_AT_END)); in staleConnectionNotReusedForNonIdempotentRequest()
DURLConnectionTest.java413 .setSocketPolicy(socketPolicy)); in testServerClosesOutput()
599 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.FAIL_HANDSHAKE)); in connectViaHttpsWithSSLFallback()
615 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.FAIL_HANDSHAKE)); in connectViaHttpsWithSSLFallbackFailuresRecorded()
616 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.FAIL_HANDSHAKE)); in connectViaHttpsWithSSLFallbackFailuresRecorded()
642 .setSocketPolicy(SocketPolicy.DISCONNECT_AT_END)); in sslFallbackNotUsedWhenRecycledConnectionFails()
716 .setSocketPolicy(SocketPolicy.DISCONNECT_AT_END)); in contentDisagreesWithContentLengthHeaderBodyTooShort()
790 mockResponse.setSocketPolicy(SocketPolicy.DISCONNECT_AT_END); in contentDisagreesWithChunkedHeaderBodyTooShort()
850 new MockResponse().setSocketPolicy(SocketPolicy.UPGRADE_TO_SSL_AT_END).clearHeaders()); in testConnectViaHttpProxyToHttps()
878 .setSocketPolicy(SocketPolicy.UPGRADE_TO_SSL_AT_END) in connectViaHttpProxyToHttpsUsingBadProxyAndHttpResponseCache()
912 new MockResponse().setSocketPolicy(SocketPolicy.UPGRADE_TO_SSL_AT_END).clearHeaders()); in proxyConnectIncludesProxyHeadersOnly()
[all …]
DCallTest.java761 .setSocketPolicy(SocketPolicy.NO_RESPONSE)); in timeoutsNotRetried()
883 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.DISCONNECT_AFTER_REQUEST)); in recoverWhenRetryOnConnectionFailureIsTrue()
896 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.DISCONNECT_AFTER_REQUEST)); in noRecoverWhenRetryOnConnectionFailureIsFalse()
914 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.FAIL_HANDSHAKE)); in recoverFromTlsHandshakeFailure()
935 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.FAIL_HANDSHAKE)); in recoverFromTlsHandshakeFailure_tlsFallbackScsvEnabled()
959 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.FAIL_HANDSHAKE)); in recoverFromTlsHandshakeFailure_Async()
977 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.FAIL_HANDSHAKE)); in noRecoveryFromTlsHandshakeFailureWhenTlsFallbackIsDisabled()
1086 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.DISCONNECT_AFTER_REQUEST)); in postBodyRetransmittedOnFailureRecovery()
2036 .setSocketPolicy(SocketPolicy.UPGRADE_TO_SSL_AT_END) in proxyConnectOmitsApplicationHeaders()
2074 .setSocketPolicy(SocketPolicy.UPGRADE_TO_SSL_AT_END) in proxyAuthenticateOnConnect()
[all …]
DCacheTest.java2259 response.setSocketPolicy(DISCONNECT_AT_END); in truncateViolently()
2283 response.setSocketPolicy(DISCONNECT_AT_END); in END_OF_STREAM()
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/
DMockWebServerTest.java183 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.DISCONNECT_AT_START)); in disconnectAtStart()
258 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.DISCONNECT_DURING_REQUEST_BODY)); in disconnectRequestHalfway()
286 .setSocketPolicy(SocketPolicy.DISCONNECT_DURING_RESPONSE_BODY)); in disconnectResponseHalfway()
/external/mockwebserver/src/test/java/com/google/mockwebserver/
DMockWebServerTest.java214 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.DISCONNECT_AT_START)); in testDisconnectAtStart()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DHttpOverSpdyTest.java260 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.NO_RESPONSE)); in readResponseHeaderTimeout()
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DUrlConnectionCacheTest.java1741 response.setSocketPolicy(DISCONNECT_AT_END); in truncateViolently()
1807 response.setSocketPolicy(DISCONNECT_AT_END);
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DResponseCacheTest.java1758 response.setSocketPolicy(DISCONNECT_AT_END); in truncateViolently()
1782 response.setSocketPolicy(DISCONNECT_AT_END); in END_OF_STREAM()