HomeSort by relevance Sort by last modified time
    Searched refs:SocketPolicy (Results 1 - 25 of 27) sorted by null

1 2

  /libcore/support/src/test/java/tests/http/
SocketPolicy.java 22 public enum SocketPolicy {
MockResponse.java 38 private SocketPolicy socketPolicy = SocketPolicy.KEEP_OPEN;
135 public SocketPolicy getSocketPolicy() {
136 return socketPolicy;
139 public MockResponse setSocketPolicy(SocketPolicy socketPolicy) {
140 this.socketPolicy = socketPolicy;
MockWebServer.java 52 import static tests.http.SocketPolicy.DISCONNECT_AT_START;
297 if (connect.getSocketPolicy() == SocketPolicy.UPGRADE_TO_SSL_AT_END) {
315 if (response.getSocketPolicy() == SocketPolicy.DISCONNECT_AT_END) {
318 } else if (response.getSocketPolicy() == SocketPolicy.SHUTDOWN_INPUT_AT_END) {
320 } else if (response.getSocketPolicy() == SocketPolicy.SHUTDOWN_OUTPUT_AT_END) {
  /external/mockwebserver/src/main/java/com/google/mockwebserver/
SocketPolicy.java 22 public enum SocketPolicy {
Dispatcher.java 36 return new MockResponse().setSocketPolicy(SocketPolicy.KEEP_OPEN);
MockResponse.java 49 private SocketPolicy socketPolicy = SocketPolicy.KEEP_OPEN;
222 public SocketPolicy getSocketPolicy() {
223 return socketPolicy;
226 public MockResponse setSocketPolicy(SocketPolicy socketPolicy) {
227 this.socketPolicy = socketPolicy;
MockWebServer.java 19 import static com.google.mockwebserver.SocketPolicy.DISCONNECT_AT_START;
20 import static com.google.mockwebserver.SocketPolicy.FAIL_HANDSHAKE;
269 SocketPolicy socketPolicy = dispatcher.peek().getSocketPolicy();
270 if (socketPolicy == DISCONNECT_AT_START) {
307 SocketPolicy socketPolicy = dispatcher.peek().getSocketPolicy();
308 if (socketPolicy == FAIL_HANDSHAKE) {
348 SocketPolicy socketPolicy = dispatcher.peek().getSocketPolicy()
    [all...]
  /external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
Dispatcher.java 34 return new MockResponse().setSocketPolicy(SocketPolicy.KEEP_OPEN);
SocketPolicy.java 20 public enum SocketPolicy {
MockResponse.java 39 private SocketPolicy socketPolicy = SocketPolicy.KEEP_OPEN;
186 public SocketPolicy getSocketPolicy() {
187 return socketPolicy;
190 public MockResponse setSocketPolicy(SocketPolicy socketPolicy) {
191 this.socketPolicy = socketPolicy;
MockWebServer.java 84 import static com.squareup.okhttp.mockwebserver.SocketPolicy.DISCONNECT_AT_START;
85 import static com.squareup.okhttp.mockwebserver.SocketPolicy.DISCONNECT_DURING_RESPONSE_BODY;
86 import static com.squareup.okhttp.mockwebserver.SocketPolicy.FAIL_HANDSHAKE;
385 SocketPolicy socketPolicy = dispatcher.peek().getSocketPolicy();
386 if (socketPolicy == DISCONNECT_AT_START) {
438 SocketPolicy socketPolicy = dispatcher.peek().getSocketPolicy();
439 if (socketPolicy == FAIL_HANDSHAKE) {
503 SocketPolicy socketPolicy = dispatcher.peek().getSocketPolicy()
    [all...]
  /frameworks/base/core/tests/coretests/src/android/net/http/
DefaultHttpClientTest.java 21 import com.google.mockwebserver.SocketPolicy;
22 import static com.google.mockwebserver.SocketPolicy.DISCONNECT_AT_END;
23 import static com.google.mockwebserver.SocketPolicy.SHUTDOWN_INPUT_AT_END;
24 import static com.google.mockwebserver.SocketPolicy.SHUTDOWN_OUTPUT_AT_END;
67 private void testServerClosesOutput(SocketPolicy socketPolicy) throws Exception {
70 .setSocketPolicy(socketPolicy));
AbstractProxyTest.java 22 import com.google.mockwebserver.SocketPolicy;
153 .setSocketPolicy(SocketPolicy.UPGRADE_TO_SSL_AT_END)
225 .setSocketPolicy(SocketPolicy.DISCONNECT_AT_START));
  /packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
ThreadingTest.java 28 import com.google.mockwebserver.SocketPolicy;
58 .setSocketPolicy(SocketPolicy.DISCONNECT_AT_END));
AbstractDownloadProviderFunctionalTest.java 42 import com.google.mockwebserver.SocketPolicy;
232 .setSocketPolicy(SocketPolicy.DISCONNECT_AT_END);
238 .setSocketPolicy(SocketPolicy.DISCONNECT_AT_END);
StorageTest.java 40 import com.google.mockwebserver.SocketPolicy;
222 .setSocketPolicy(SocketPolicy.DISCONNECT_AT_END);
PublicApiFunctionalTest.java 57 import com.google.mockwebserver.SocketPolicy;
146 .setSocketPolicy(SocketPolicy.DISCONNECT_AT_END));
    [all...]
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
URLConnectionTest.java 29 import com.squareup.okhttp.mockwebserver.SocketPolicy;
87 import static com.squareup.okhttp.mockwebserver.SocketPolicy.DISCONNECT_AT_END;
88 import static com.squareup.okhttp.mockwebserver.SocketPolicy.DISCONNECT_AT_START;
89 import static com.squareup.okhttp.mockwebserver.SocketPolicy.SHUTDOWN_INPUT_AT_END;
90 import static com.squareup.okhttp.mockwebserver.SocketPolicy.SHUTDOWN_OUTPUT_AT_END;
402 private void testServerClosesOutput(SocketPolicy socketPolicy) throws Exception {
404 .setSocketPolicy(socketPolicy));
590 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.FAIL_HANDSHAKE));
606 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.FAIL_HANDSHAKE))
    [all...]
CallTest.java 31 import com.squareup.okhttp.mockwebserver.SocketPolicy;
684 .setSocketPolicy(SocketPolicy.NO_RESPONSE));
797 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.DISCONNECT_AT_START));
809 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.DISCONNECT_AT_START));
826 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.FAIL_HANDSHAKE));
847 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.FAIL_HANDSHAKE));
871 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.FAIL_HANDSHAKE));
889 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.FAIL_HANDSHAKE));
    [all...]
  /external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/
MockWebServerTest.java 182 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.DISCONNECT_AT_START));
259 .setSocketPolicy(SocketPolicy.DISCONNECT_DURING_RESPONSE_BODY));
  /external/mockwebserver/src/test/java/com/google/mockwebserver/
MockWebServerTest.java 208 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.DISCONNECT_AT_START));
  /libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
HttpsURLConnectionTest.java 24 import com.google.mockwebserver.SocketPolicy;
    [all...]
  /libcore/luni/src/test/java/libcore/java/net/
URLConnectionTest.java 25 import com.google.mockwebserver.SocketPolicy;
89 import static com.google.mockwebserver.SocketPolicy.DISCONNECT_AT_END;
90 import static com.google.mockwebserver.SocketPolicy.DISCONNECT_AT_START;
91 import static com.google.mockwebserver.SocketPolicy.FAIL_HANDSHAKE;
92 import static com.google.mockwebserver.SocketPolicy.SHUTDOWN_INPUT_AT_END;
93 import static com.google.mockwebserver.SocketPolicy.SHUTDOWN_OUTPUT_AT_END;
407 private void testServerClosesSocket(SocketPolicy socketPolicy) throws Exception {
410 .setSocketPolicy(socketPolicy));
742 .setSocketPolicy(SocketPolicy.UPGRADE_TO_SSL_AT_END
    [all...]
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
HttpOverSpdyTest.java 30 import com.squareup.okhttp.mockwebserver.SocketPolicy;
260 server.enqueue(new MockResponse().setSocketPolicy(SocketPolicy.NO_RESPONSE));
  /external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
ResponseCacheTest.java 80 import static com.squareup.okhttp.mockwebserver.SocketPolicy.DISCONNECT_AT_END;
    [all...]

Completed in 839 milliseconds

1 2