/external/mockwebserver/src/test/java/com/google/mockwebserver/ |
CustomDispatcherTest.java | 16 package com.google.mockwebserver; 30 private MockWebServer mockWebServer = new MockWebServer(); 34 mockWebServer.shutdown(); 38 mockWebServer.play(); 48 mockWebServer.setDispatcher(dispatcher); 49 final URL url = mockWebServer.getUrl("/"); 59 mockWebServer.play(); 72 mockWebServer.setDispatcher(dispatcher) [all...] |
/frameworks/base/core/tests/coretests/src/android/net/http/ |
DefaultHttpClientTest.java | 19 import com.google.mockwebserver.MockResponse; 20 import com.google.mockwebserver.MockWebServer; 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; 44 private MockWebServer server = new MockWebServer();
|
CookiesTest.java | 19 import com.google.mockwebserver.MockResponse; 20 import com.google.mockwebserver.MockWebServer; 21 import com.google.mockwebserver.RecordedRequest; 39 private MockWebServer server = new MockWebServer(); 81 server = new MockWebServer();
|
AbstractProxyTest.java | 19 import com.google.mockwebserver.MockResponse; 20 import com.google.mockwebserver.MockWebServer; 21 import com.google.mockwebserver.RecordedRequest; 22 import com.google.mockwebserver.SocketPolicy; 43 private MockWebServer server = new MockWebServer(); 241 @Override void configure(MockWebServer server, HttpClient client, HttpRequest request) { 247 @Override void configure(MockWebServer server, HttpClient client, HttpRequest request) { 253 @Override void configure(MockWebServer server, HttpClient client, HttpRequest request) [all...] |
HttpResponseCacheTest.java | 19 import com.google.mockwebserver.MockResponse; 20 import com.google.mockwebserver.MockWebServer; 35 private MockWebServer server = new MockWebServer();
|
/external/okhttp/src/test/java/com/squareup/okhttp/internal/ |
AsyncApiTest.java | 18 import com.google.mockwebserver.MockResponse; 19 import com.google.mockwebserver.MockWebServer; 20 import com.google.mockwebserver.RecordedRequest; 31 private MockWebServer server = new MockWebServer();
|
/external/okhttp/ |
pom.xml | 33 <groupId>com.google.mockwebserver</groupId> 34 <artifactId>mockwebserver</artifactId>
|
README.md | 49 --classpath ~/.m2/repository/com/google/mockwebserver/mockwebserver/20130122/mockwebserver-20130122.jar \
|
/libcore/benchmarks/src/benchmarks/regression/ |
URLConnectionBenchmark.java | 21 import com.google.mockwebserver.Dispatcher; 22 import com.google.mockwebserver.MockResponse; 23 import com.google.mockwebserver.MockWebServer; 24 import com.google.mockwebserver.RecordedRequest; 40 private MockWebServer server; 55 server = new MockWebServer();
|
/packages/providers/DownloadProvider/tests/ |
Android.mk | 11 LOCAL_STATIC_JAVA_LIBRARIES := mockwebserver dexmaker mockito-target
|
/external/mockwebserver/ |
Android.mk | 23 LOCAL_MODULE := mockwebserver 33 LOCAL_MODULE := mockwebserver-host
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
AbstractDownloadProviderFunctionalTest.java | 36 import com.google.mockwebserver.MockResponse; 37 import com.google.mockwebserver.MockWebServer; 38 import com.google.mockwebserver.RecordedRequest; 39 import com.google.mockwebserver.SocketPolicy; 61 protected MockWebServer mServer; 167 mServer = new MockWebServer(); 240 * Fetch the last request received by the MockWebServer.
|
ThreadingTest.java | 27 import com.google.mockwebserver.MockResponse; 28 import com.google.mockwebserver.SocketPolicy;
|
DownloadProviderFunctionalTest.java | 31 import com.google.mockwebserver.MockWebServer; 32 import com.google.mockwebserver.RecordedRequest; 42 * {@link DownloadService} with start intents. It sets up a {@link MockWebServer} running on the
|
/packages/apps/KeyChain/tests/ |
Android.mk | 21 LOCAL_STATIC_JAVA_LIBRARIES := com.android.keychain.tests.support core-tests mockwebserver
|
/libcore/luni/src/test/java/libcore/java/net/ |
CookiesTest.java | 19 import com.google.mockwebserver.MockResponse; 20 import com.google.mockwebserver.MockWebServer; 21 import com.google.mockwebserver.RecordedRequest; 50 MockWebServer server = new MockWebServer(); 78 MockWebServer server = new MockWebServer(); 108 MockWebServer server = new MockWebServer(); [all...] |
/external/mockwebserver/src/main/java/com/google/mockwebserver/ |
MockWebServer.java | 17 package com.google.mockwebserver; 19 import static com.google.mockwebserver.SocketPolicy.DISCONNECT_AT_START; 20 import static com.google.mockwebserver.SocketPolicy.FAIL_HANDSHAKE; 60 public final class MockWebServer { 64 private static final Logger logger = Logger.getLogger(MockWebServer.class.getName()); 195 executor.execute(namedRunnable("MockWebServer-accept-" + port, new Runnable() { 200 logger.log(Level.WARNING, "MockWebServer connection failed", e); 210 logger.log(Level.WARNING, "MockWebServer server socket close failed", e); 217 logger.log(Level.WARNING, "MockWebServer socket close failed", e); 223 logger.log(Level.WARNING, "MockWebServer executor shutdown failed", e) [all...] |
Dispatcher.java | 16 package com.google.mockwebserver;
|
QueueDispatcher.java | 16 package com.google.mockwebserver;
|
SocketPolicy.java | 17 package com.google.mockwebserver;
|
/libcore/support/src/test/java/tests/http/ |
MockWebServer.java | 58 * @deprecated Use {@code com.google.mockwebserver.MockWebServer} instead. 61 public final class MockWebServer { 65 private static final Logger logger = Logger.getLogger(MockWebServer.class.getName()); 182 executor.execute(namedRunnable("MockWebServer-accept-" + port, new Runnable() { 187 logger.log(Level.WARNING, "MockWebServer connection failed", e); 197 logger.log(Level.WARNING, "MockWebServer server socket close failed", e); 204 logger.log(Level.WARNING, "MockWebServer socket close failed", e); 210 logger.log(Level.WARNING, "MockWebServer executor shutdown failed", e); 242 String name = "MockWebServer-" + raw.getRemoteSocketAddress() [all...] |
/external/okhttp/src/test/java/com/squareup/okhttp/internal/mockspdyserver/ |
MockSpdyServer.java | 20 import com.google.mockwebserver.MockResponse; 21 import com.google.mockwebserver.QueueDispatcher; 22 import com.google.mockwebserver.RecordedRequest; 120 logger.log(Level.WARNING, "MockWebServer connection failed", e); 128 logger.log(Level.WARNING, "MockWebServer server socket close failed", e); 135 logger.log(Level.WARNING, "MockWebServer socket close failed", e);
|
/external/chromium_org/chrome_frame/test/ |
test_with_web_server.h | 50 // An interface for listeners of interesting events on a MockWebServer. 55 // Invoked when a MockWebServer receives an expected response; see 56 // MockWebServer::ExpectAndHandlePostedResult. 61 // MockWebServer mock(9999, "0.0.0.0"); 79 class MockWebServer : public test_server::HTTPTestServer { 81 MockWebServer(int port, const std::wstring& address, base::FilePath root_dir) 221 static testing::StrictMock<MockWebServer>& server_mock() { 247 static testing::StrictMock<MockWebServer>* server_mock_;
|
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/ |
Android.mk | 23 LOCAL_STATIC_JAVA_LIBRARIES := android-common mockwebserver
|
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/ |
KeyChainTestActivity.java | 47 import com.google.mockwebserver.MockResponse; 48 import com.google.mockwebserver.MockWebServer; 201 MockWebServer server = new MockWebServer();
|