Home
last modified time | relevance | path

Searched refs:MockWebServer (Results 1 – 25 of 31) sorted by relevance

12

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DCookiesTest.java22 import com.squareup.okhttp.mockwebserver.MockWebServer;
66 MockWebServer server = new MockWebServer(); in testNetscapeResponse()
94 MockWebServer server = new MockWebServer(); in testRfc2109Response()
124 MockWebServer server = new MockWebServer(); in testRfc2965Response()
158 MockWebServer server = new MockWebServer(); in testQuotedAttributeValues()
190 MockWebServer server = new MockWebServer(); in testSendingCookiesFromStore()
218 MockWebServer redirectTarget = new MockWebServer(); in testRedirectsDoNotIncludeTooManyCookies()
222 MockWebServer redirectSource = new MockWebServer(); in testRedirectsDoNotIncludeTooManyCookies()
275 MockWebServer server = new MockWebServer(); in testHeadersSentToCookieHandler()
326 MockWebServer server = new MockWebServer(); in testCookiesSentIgnoresCase()
[all …]
DThreadInterruptTest.java23 import com.squareup.okhttp.mockwebserver.MockWebServer;
48 private MockWebServer server;
52 server = new MockWebServer(); in setUp()
DDisconnectTest.java23 import com.squareup.okhttp.mockwebserver.MockWebServer;
46 private MockWebServer server;
50 server = new MockWebServer(); in setUp()
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
DBenchmark.java26 import com.squareup.okhttp.mockwebserver.MockWebServer;
103 MockWebServer server = startServer(); in run()
159 private MockWebServer startServer() throws IOException { in startServer()
160 Logger.getLogger(MockWebServer.class.getName()).setLevel(Level.WARNING); in startServer()
161 MockWebServer server = new MockWebServer(); in startServer()
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/
DMockWebServerTest.java49 @Rule public final MockWebServer server = new MockWebServer();
313 MockWebServer server = new MockWebServer(); in shutdownWithoutStart()
318 MockWebServer server = new MockWebServer(); in shutdownWithoutEnqueue()
340 MockWebServer other = new MockWebServer(); in differentInstancesGetDifferentPorts()
DCustomDispatcherTest.java31 private MockWebServer mockWebServer = new MockWebServer();
/external/okhttp/mockwebserver/
DREADME.md1 MockWebServer chapter
21 Use MockWebServer the same way that you use mocking frameworks like
32 // Create a MockWebServer. These are lean enough that you can create a new
34 MockWebServer server = new MockWebServer();
116 By default MockWebServer uses a queue to specify a series of responses. Use a
143 Get MockWebServer via Maven:
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DSocksProxyTest.java19 import com.squareup.okhttp.mockwebserver.MockWebServer;
35 private final MockWebServer server = new MockWebServer();
DConnectionReuseTest.java20 import com.squareup.okhttp.mockwebserver.MockWebServer;
35 @Rule public final MockWebServer server = new MockWebServer();
DInterceptorTest.java19 import com.squareup.okhttp.mockwebserver.MockWebServer;
48 @Rule public MockWebServer server = new MockWebServer();
DURLConnectionTest.java28 import com.squareup.okhttp.mockwebserver.MockWebServer;
104 @Rule public final MockWebServer server = new MockWebServer();
105 @Rule public final MockWebServer server2 = new MockWebServer();
1962 MockWebServer proxyServer = (uri.getPort() == server.getPort())
2249 MockWebServer server = new MockWebServer();
3348 MockWebServer server, OkUrlFactory streamHandlerFactory, URL url)
3357 MockWebServer server, OkUrlFactory streamHandlerFactory, URL url)
3366 MockWebServer server, OkUrlFactory streamHandlerFactory, URL url)
3376 MockWebServer server, OkUrlFactory streamHandlerFactory, URL url)
3386 MockWebServer server, OkUrlFactory streamHandlerFactory, URL url)
[all …]
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/android/
DHttpResponseCacheTest.java24 import com.squareup.okhttp.mockwebserver.MockWebServer;
53 @Rule public MockWebServer server = new MockWebServer();
/external/okhttp/samples/static-server/src/main/java/com/squareup/okhttp/sample/
DSampleServer.java6 import com.squareup.okhttp.mockwebserver.MockWebServer;
34 MockWebServer server = new MockWebServer(); in run()
/external/mockwebserver/src/test/java/com/google/mockwebserver/
DCustomDispatcherTest.java30 private MockWebServer mockWebServer = new MockWebServer();
DMockWebServerTest.java35 private MockWebServer server;
40 server = new MockWebServer(); in setUp()
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DMockWebServer.java94 public final class MockWebServer implements TestRule { class
110 private static final Logger logger = Logger.getLogger(MockWebServer.class.getName());
360 logger.info(MockWebServer.this + " starting to accept connections");
363 logger.log(Level.WARNING, MockWebServer.this + " failed unexpectedly", e);
385 logger.info(MockWebServer.this + " done accepting connections: " + e.getMessage());
427 MockWebServer.this + " connection from " + raw.getInetAddress() + " failed: " + e);
430 MockWebServer.this + " connection from " + raw.getInetAddress() + " crashed", e);
487 logger.warning(MockWebServer.this
550 logger.info(MockWebServer.this + " received request: " + request
877 logger.info(MockWebServer.this + " received request: " + request
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DOkUrlFactoryTest.java9 import com.squareup.okhttp.mockwebserver.MockWebServer;
33 @Rule public MockWebServer server = new MockWebServer();
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/
DWebSocketCallTest.java25 import com.squareup.okhttp.mockwebserver.MockWebServer;
42 @Rule public final MockWebServer server = new MockWebServer();
/external/okhttp/
DREADME.md25 MockWebServer section in OkHttp
30 MockWebServer coupling with OkHttp is essential for proper testing of SPDY and HTTP/2.0 so that cod…
DCHANGELOG.md165 * New: Fold `MockWebServerRule` into `MockWebServer`. This makes it easier to
166 write JUnit tests with `MockWebServer`. The `MockWebServer` library now
173 * Fix: Change `MockWebServer` to use the same logic as OkHttp when determining
272 * Fix: Better handling of uncaught exceptions in MockWebServer with HTTP/2.
317 * Fix: MockWebServer explicitly closes sockets. (On some Android releases,
701 * New: Protocol selection in MockWebServer.
720 * New: Support for "PATCH" HTTP method in client and MockWebServer.
768 * Bring MockWebServer into OkHttp and teach it SPDY.
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/tls/
DCertificatePinnerChainValidationTest.java26 import com.squareup.okhttp.mockwebserver.MockWebServer;
40 @Rule public final MockWebServer server = new MockWebServer();
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DCacheAdapterTest.java24 import com.squareup.okhttp.mockwebserver.MockWebServer;
63 private MockWebServer server;
68 server = new MockWebServer(); in setUp()
/external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/
DOkApacheClientTest.java4 import com.squareup.okhttp.mockwebserver.MockWebServer;
34 private MockWebServer server;
39 server = new MockWebServer(); in setUp()
/external/okhttp/okhttp-logging-interceptor/src/test/java/com/squareup/okhttp/logging/
DHttpLoggingInterceptorTest.java26 import com.squareup.okhttp.mockwebserver.MockWebServer;
46 @Rule public final MockWebServer server = new MockWebServer();
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DHttpOverSpdyTest.java28 import com.squareup.okhttp.mockwebserver.MockWebServer;
68 @Rule public final MockWebServer server = new MockWebServer();

12