Home
last modified time | relevance | path

Searched refs:mWebServer (Results 1 – 14 of 14) sorted by relevance

/cts/libs/webkit-shared/src/android/webkit/cts/
DSharedSdkWebServer.java33 private final IWebServer mWebServer; field in SharedSdkWebServer
36 mWebServer = webServer; in SharedSdkWebServer()
43 mWebServer.start(sslMode, acceptedIssuerDer, keyResId, certResId); in start()
50 mWebServer.shutdown(); in shutdown()
57 mWebServer.resetRequestState(); in resetRequestState()
70 return mWebServer.setResponse( in setResponse()
80 return mWebServer.getAbsoluteUrl(path); in getAbsoluteUrl()
87 return mWebServer.getUserAgentUrl();
94 return mWebServer.getDelayedAssetUrl(path);
101 return mWebServer.getRedirectingAssetUrl(path);
[all …]
DSharedWebViewTestEnvironment.java251 private CtsTestServer mWebServer;
259 assertNull(mWebServer);
278 mWebServer = new CtsTestServer(
284 if (mWebServer == null) {
294 mWebServer.shutdown();
295 mWebServer = null;
302 assertNotNull("The WebServer needs to be started", mWebServer);
303 mWebServer.resetRequestState();
310 assertNotNull("The WebServer needs to be started", mWebServer);
311 return mWebServer.setResponse(
[all …]
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewSslTest.java451 private SharedSdkWebServer mWebServer; field in WebViewSslTest
465 if (mWebServer != null) { in cleanup()
466 stopWebServer(mWebServer); in cleanup()
532 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.NO_CLIENT_AUTH); in testInsecureSiteClearsCertificate()
535 mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL)); in testInsecureSiteClearsCertificate()
540 stopWebServer(mWebServer); in testInsecureSiteClearsCertificate()
542 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testInsecureSiteClearsCertificate()
544 mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL)); in testInsecureSiteClearsCertificate()
562 mWebServer = testEnvironment.getSetupWebServer(SslMode.INSECURE); in testSecureSiteSetsCertificate()
564 mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL)); in testSecureSiteSetsCertificate()
[all …]
DWebViewClientTest.java77 private SharedSdkWebServer mWebServer; field in WebViewClientTest
103 if (mWebServer != null) { in tearDown()
104 mWebServer.shutdown(); in tearDown()
182 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testShouldOverrideUrlLoadingOnCreateWindow()
214 mOnUiThread.loadUrl(mWebServer.getAssetUrl(TestHtmlConstants.BLANK_TAG_URL)); in testShouldOverrideUrlLoadingOnCreateWindow()
229 assertEquals(mWebServer.getAssetUrl(TestHtmlConstants.PAGE_WITH_LINK_URL), in testShouldOverrideUrlLoadingOnCreateWindow()
246 assertEquals(mWebServer.getAssetUrl(TestHtmlConstants.BLANK_PAGE_URL), in testShouldOverrideUrlLoadingOnCreateWindow()
270 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testLoadPage()
271 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testLoadPage()
313 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testOnReceivedLoginRequest()
[all …]
DWebSettingsTest.java98 private SharedSdkWebServer mWebServer; field in WebSettingsTest
115 if (mWebServer != null) { in tearDown()
116 mWebServer.shutdown(); in tearDown()
117 mWebServer = null; in tearDown()
239 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testAccessUserAgentString()
240 String url = mWebServer.getUserAgentUrl(); in testAccessUserAgentString()
321 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testAccessCacheMode_cacheElseNetwork()
325 int initialRequestCount = mWebServer.getRequestCount(); in testAccessCacheMode_cacheElseNetwork()
328 int requestCountAfterFirstLoad = mWebServer.getRequestCount(); in testAccessCacheMode_cacheElseNetwork()
334 int requestCountAfterSecondLoad = mWebServer.getRequestCount(); in testAccessCacheMode_cacheElseNetwork()
[all …]
DCookieManagerTest.java60 private SharedSdkWebServer mWebServer; field in CookieManagerTest
110 if (mWebServer != null) { in tearDown()
111 mWebServer.shutdown(); in tearDown()
137 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testAcceptCookie()
138 String url = mWebServer.getCookieUrl("conquest.html"); in testAcceptCookie()
147 url = mWebServer.getCookieUrl("war.html"); in testAcceptCookie()
159 url = mWebServer.getCookieUrl("famine.html"); in testAcceptCookie()
169 url = mWebServer.getCookieUrl("death.html"); in testAcceptCookie()
352 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testThirdPartyCookie()
368 mWebServer.getSetCookieUrl("/cookie_1.js", "test1", "value1", in testThirdPartyCookie()
[all …]
DWebHistoryItemTest.java50 private SharedSdkWebServer mWebServer; field in WebHistoryItemTest
81 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in setUp()
89 if (mWebServer != null) { in tearDown()
90 mWebServer.shutdown(); in tearDown()
133 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testWebHistoryItem()
152 url = mWebServer.getAssetUrl(TestHtmlConstants.BR_TAG_URL); in testWebHistoryItem()
DWebViewTest.java153 private SharedSdkWebServer mWebServer; field in WebViewTest
170 if (mWebServer != null) { in cleanup()
171 mWebServer.shutdown(); in cleanup()
322 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testLoadUrl()
330 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testLoadUrl()
356 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testPostUrlWithNetworkUrl()
358 final String networkUrl = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testPostUrlWithNetworkUrl()
364 HttpRequest request = mWebServer.getLastAssetRequest(TestHtmlConstants.HELLO_WORLD_URL); in testPostUrlWithNetworkUrl()
388 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in testAppInjectedXRequestedWithHeaderIsNotOverwritten()
392 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testAppInjectedXRequestedWithHeaderIsNotOverwritten()
[all …]
DHttpAuthHandlerTest.java53 private SharedSdkWebServer mWebServer; field in HttpAuthHandlerTest
67 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in setUp()
75 if (mWebServer != null) { in tearDown()
76 mWebServer.shutdown(); in tearDown()
185 String url = mWebServer.getAuthAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testProceed()
194 String url = mWebServer.getAuthAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testCancel()
206 String url = mWebServer.getAuthAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testUseHttpAuthUsernamePassword()
DWebChromeClientTest.java70 private SharedSdkWebServer mWebServer; field in WebChromeClientTest
82 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.INSECURE); in setUp()
90 if (mWebServer != null) { in tearDown()
91 mWebServer.shutdown(); in tearDown()
129 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnProgressChanged()
146 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnReceivedTitle()
176 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnReceivedIcon()
201 mOnUiThread.loadUrlAndWaitForCompletion(mWebServer. in runWindowTest()
266 mWebServer.getAssetUrl(TestHtmlConstants.JS_UNLOAD_URL)); in testOnJsBeforeUnloadIsCalled()
276 mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL)); in testOnJsBeforeUnloadIsCalled()
[all …]
DWebViewZoomTest.java65 private SharedSdkWebServer mWebServer; field in WebViewZoomTest
87 if (mWebServer != null) { in cleanup()
88 mWebServer.shutdown(); in cleanup()
89 mWebServer = null; in cleanup()
134 assertNull(mWebServer); in setUpPage()
137 mWebServer = getTestEnvironment().getSetupWebServer(SslMode.TRUST_ANY_CLIENT); in setUpPage()
139 mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL)); in setUpPage()
/cts/tests/tests/apache-http/src/android/net/http/cts/
DApacheHttpClientTest.java41 private CtsTestServer mWebServer; field in ApacheHttpClientTest
46 mWebServer = new CtsTestServer(mContext); in setUp()
52 mWebServer.shutdown(); in tearDown()
74 return Uri.parse(mWebServer.getTestDownloadUrl("cts-small-download-" + index, in getSmallDownloadUrl()
/cts/tests/app/src/android/app/cts/
DDownloadManagerTestBase.java107 private CtsTestServer mWebServer; field in DownloadManagerTestBase
115 mWebServer = new CtsTestServer(mContext); in setUp()
124 mWebServer.shutdown(); in tearDown()
362 return Uri.parse(mWebServer.getTestDownloadUrl("cts-good-download", 0)); in getGoodUrl()
366 return Uri.parse(mWebServer.getBaseUri() + "/nosuchurl"); in getBadUrl()
370 return Uri.parse(mWebServer.getTestDownloadUrl("cts-minimum-download", in getMinimumDownloadUrl()
375 return Uri.parse(mWebServer.getAssetUrl(asset)); in getAssetUrl()
/cts/tests/media/src/android/mediav2/cts/
DExtractorTest.java503 private CtsTestServer mWebServer; field in ExtractorTest.SetDataSourceTest
518 mWebServer = new CtsTestServer(context); in setUp()
519 mInpMediaUrl = mWebServer.getAssetUrl(RES_STRING); in setUp()
529 mWebServer.shutdown(); in tearDown()
702 HttpRequest req = mWebServer.getLastAssetRequest(RES_STRING);