Home
last modified time | relevance | path

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

/external/mockwebserver/src/main/java/com/google/mockwebserver/
DMockResponse.java49 private SocketPolicy socketPolicy = SocketPolicy.KEEP_OPEN; field in MockResponse
223 return socketPolicy; in getSocketPolicy()
226 public MockResponse setSocketPolicy(SocketPolicy socketPolicy) { in setSocketPolicy() argument
227 this.socketPolicy = socketPolicy; in setSocketPolicy()
DMockWebServer.java269 SocketPolicy socketPolicy = dispatcher.peek().getSocketPolicy(); in play()
270 if (socketPolicy == DISCONNECT_AT_START) { in play()
307 SocketPolicy socketPolicy = dispatcher.peek().getSocketPolicy(); in serveConnection()
308 if (socketPolicy == FAIL_HANDSHAKE) { in serveConnection()
348 SocketPolicy socketPolicy = dispatcher.peek().getSocketPolicy(); in serveConnection()
352 if (socketPolicy == SocketPolicy.UPGRADE_TO_SSL_AT_END) return; in serveConnection()
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DMockResponse.java40 private SocketPolicy socketPolicy = SocketPolicy.KEEP_OPEN; field in MockResponse
189 return socketPolicy; in getSocketPolicy()
192 public MockResponse setSocketPolicy(SocketPolicy socketPolicy) { in setSocketPolicy() argument
193 this.socketPolicy = socketPolicy; in setSocketPolicy()
DMockWebServer.java388 SocketPolicy socketPolicy = dispatcher.peek().getSocketPolicy();
389 if (socketPolicy == DISCONNECT_AT_START) {
441 SocketPolicy socketPolicy = dispatcher.peek().getSocketPolicy();
442 if (socketPolicy == FAIL_HANDSHAKE) {
507 SocketPolicy socketPolicy = dispatcher.peek().getSocketPolicy();
511 if (socketPolicy == SocketPolicy.UPGRADE_TO_SSL_AT_END) return;
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DURLConnectionTest.java411 private void testServerClosesOutput(SocketPolicy socketPolicy) throws Exception { in testServerClosesOutput() argument
413 .setSocketPolicy(socketPolicy)); in testServerClosesOutput()