/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
ClientOnPageFinishedTest.java | 127 TestWebServer webServer = null; 129 webServer = new TestWebServer(false); 131 final String redirectTargetUrl = webServer.setResponse(redirectTargetPath, 133 final String redirectUrl = webServer.setRedirect("/302.html", redirectTargetUrl); 150 if (webServer != null) webServer.shutdown(); 160 TestWebServer webServer = null; 162 webServer = new TestWebServer(false); 168 final String testUrl = webServer.setResponse(testPath, testHtml, null); 169 final String syncUrl = webServer.setResponse(syncPath, testHtml, null) [all...] |
LoadUrlTest.java | 145 TestWebServer webServer = null; 147 webServer = new TestWebServer(false); 149 webServer.setResponseBase64(imagePath, 152 final String url = webServer.setResponse( 165 validateRequestHeaders(extraHeaders, webServer.getLastRequest(path)); 167 validateNoRequestHeaders(extraHeaders, webServer.getLastRequest(imagePath)); 169 if (webServer != null) webServer.shutdown(); 181 TestWebServer webServer = null; 183 webServer = new TestWebServer(false) [all...] |
LoadDataWithBaseUrlTest.java | 91 TestWebServer webServer = null; 93 webServer = new TestWebServer(false); 94 webServer.setResponseBase64("/" + CommonResources.FAVICON_FILENAME, 103 "text/html", false, webServer.getBaseUrl(), null); 107 if (webServer != null) webServer.shutdown(); 114 TestWebServer webServer = null; 116 webServer = new TestWebServer(false); 118 final String scriptUrl = webServer.setResponse(SCRIPT_FILE, SCRIPT_JS, 123 loadDataWithBaseUrlSync(pageHtml, "text/html", false, webServer.getBaseUrl(), null) [all...] |
AwContentsClientVisitedHistoryTest.java | 102 TestWebServer webServer = null; 104 webServer = new TestWebServer(false); 105 final String pageUrl = webServer.setResponse(path, html, null); 121 if (webServer != null) webServer.shutdown(); 143 TestWebServer webServer = null; 145 webServer = new TestWebServer(false); 146 final String pageUrl = webServer.setResponse(path, html, null); 156 if (webServer != null) webServer.shutdown() [all...] |
AwContentsClientAutoLoginTest.java | 37 TestWebServer webServer = null; 39 webServer = new TestWebServer(false); 40 final String pageUrl = webServer.setResponse(path, html, headers); 49 if (webServer != null) webServer.shutdown();
|
AwContentsTest.java | 212 TestWebServer webServer = null; 214 webServer = new TestWebServer(false); 220 final String pageUrl = webServer.setResponse( 228 assertEquals(1, webServer.getRequestCount(pagePath)); 240 assertEquals(1, webServer.getRequestCount(pagePath)); 252 assertEquals(2, webServer.getRequestCount(pagePath)); 254 if (webServer != null) webServer.shutdown(); 282 TestWebServer webServer = null; 284 webServer = new TestWebServer(false) [all...] |
CookieManagerTest.java | 68 TestWebServer webServer = null; 70 webServer = new TestWebServer(false); 74 String url = webServer.setResponse(path, responseStr, null); 86 url = webServer.setResponse(path, responseStr, responseHeaders); 93 url = webServer.setResponse(path, responseStr, null); 104 url = webServer.setResponse(path, responseStr, responseHeaders); 111 if (webServer != null) webServer.shutdown(); 359 TestWebServer webServer = null; 371 webServer = new TestWebServer(false) [all...] |
AwContentsClientGetVideoLoadingProgressViewTest.java | 67 VideoTestWebServer webServer = new VideoTestWebServer( 71 webServer.getFullScreenVideoTestURL()); 77 if (webServer != null) webServer.getTestWebServer().shutdown();
|
AwSettingsTest.java | 384 TestWebServer webServer, 387 mWebServer = webServer; [all...] |
AwContentsClientFullScreenVideoTest.java | 28 private VideoTestWebServer webServer; 40 webServer = new VideoTestWebServer( 47 if (webServer != null) webServer.getTestWebServer().shutdown(); 153 webServer.getFullScreenVideoTestURL());
|
CookieManagerStartupTest.java | 64 TestWebServer webServer = null; 66 webServer = new TestWebServer(false); 68 String url = webServer.setResponse(path, CommonResources.ABOUT_HTML, null); 90 if (webServer != null) webServer.shutdown();
|
GetTitleTest.java | 63 TestWebServer webServer = null; 65 webServer = new TestWebServer(false); 67 final String url = webServer.setResponse(filename, html, null); 73 if (webServer != null) webServer.shutdown();
|
NavigationHistoryTest.java | 80 private String addPage1ToServer(TestWebServer webServer) { 88 private String addPage2ToServer(TestWebServer webServer) { 96 private String addPageWithHashTagRedirectToServer(TestWebServer webServer) { 221 private String addNoncacheableLoginPageToServer(TestWebServer webServer) { 246 private String addNoncacheableLoginResponsePageToServer(TestWebServer webServer) {
|
AwContentsClientShouldOverrideUrlLoadingTest.java | 104 private String addPageToTestServer(TestWebServer webServer, String httpPath, String html) { 108 return webServer.setResponse(httpPath, html, headers); 111 private String createRedirectTargetPage(TestWebServer webServer) { 112 return addPageToTestServer(webServer, REDIRECT_TARGET_PATH, [all...] |
AwContentsClientShouldInterceptRequestTest.java | 123 private String addPageToTestServer(TestWebServer webServer, String httpPath, String html) { 127 return webServer.setResponse(httpPath, html, headers); 130 private String addAboutPageToTestServer(TestWebServer webServer) { 131 return addPageToTestServer(webServer, "/" + CommonResources.ABOUT_FILENAME, [all...] |
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/util/ |
VideoTestUtil.java | 38 VideoTestWebServer webServer = new VideoTestWebServer(testCase.getActivity()); 48 webServer.getOnePixelOneFrameWebmURL() + "' /> </body></html>"; 52 if (webServer != null && webServer.getTestWebServer() != null) 53 webServer.getTestWebServer().shutdown();
|
ImagePageGenerator.java | 56 public String getPageUrl(TestWebServer webServer) { 59 webServer.setResponseBase64(imagePath, getImageSourceNoAdvance(), 62 return webServer.setResponse(pagePath, getPageTemplateSource(imagePath), null);
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/ |
HttpsURLConnectionTest.java | 134 // create a webserver to check and respond to requests 136 MockWebServer webServer = createWebServer(ctx, dispatcher); 139 URL url = webServer.getUrl("/"); 151 webServer.shutdown(); 166 // create a webserver to check and respond to requests 169 MockWebServer webServer = createWebServer(ctx, dispatcher); 172 URL url = webServer.getUrl("/"); 189 webServer.shutdown(); 212 // create a webserver to check and respond to requests 214 MockWebServer webServer = createWebServer(ctx, dispatcher) [all...] |
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/ |
PermissionTestService.java | 212 CtsTestServer webServer = null; 215 webServer = new CtsTestServer(getApplication()); 222 url = new URL(webServer.getAssetUrl("hello.html")); 256 if (webServer != null) { 257 webServer.shutdown();
|