Searched refs:SocketPolicy (Results 1 - 4 of 4) sorted by relevance

/libcore/support/src/test/java/tests/http/
H A DSocketPolicy.java22 public enum SocketPolicy { enum
H A DMockResponse.java38 private SocketPolicy socketPolicy = SocketPolicy.KEEP_OPEN;
135 public SocketPolicy getSocketPolicy() {
139 public MockResponse setSocketPolicy(SocketPolicy socketPolicy) {
H A DMockWebServer.java52 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) {
/libcore/luni/src/test/java/libcore/java/net/
H A DURLConnectionTest.java23 import com.google.mockwebserver.SocketPolicy;
77 import static com.google.mockwebserver.SocketPolicy.DISCONNECT_AFTER_READING_REQUEST;
78 import static com.google.mockwebserver.SocketPolicy.DISCONNECT_AT_END;
79 import static com.google.mockwebserver.SocketPolicy.DISCONNECT_AT_START;
80 import static com.google.mockwebserver.SocketPolicy.SHUTDOWN_INPUT_AT_END;
81 import static com.google.mockwebserver.SocketPolicy.SHUTDOWN_OUTPUT_AT_END;
308 private void testServerClosesSocket(SocketPolicy socketPolicy) throws Exception {
672 .setSocketPolicy(SocketPolicy.UPGRADE_TO_SSL_AT_END)
708 .setSocketPolicy(SocketPolicy.UPGRADE_TO_SSL_AT_END)
756 .setSocketPolicy(SocketPolicy
[all...]

Completed in 171 milliseconds