Home
last modified time | relevance | path

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

/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewSslTest.java431 private CtsTestServer mWebServer; field in WebViewSslTest
464 if (mWebServer != null) { in tearDown()
471 assertNull(mWebServer); in startWebServer()
472 mWebServer = new CtsTestServer(getActivity(), secure); in startWebServer()
476 assertNotNull(mWebServer); in stopWebServer()
482 mWebServer.shutdown(); in stopWebServer()
483 mWebServer = null; in stopWebServer()
504 mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL)); in testInsecureSiteClearsCertificate()
513 mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL)); in testInsecureSiteClearsCertificate()
533 mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL)); in testSecureSiteSetsCertificate()
[all …]
DHttpAuthHandlerTest.java39 private CtsTestServer mWebServer; field in HttpAuthHandlerTest
61 if (mWebServer != null) { in tearDown()
62 mWebServer.shutdown(); in tearDown()
153 mWebServer = new CtsTestServer(getActivity()); in testProceed()
154 String url = mWebServer.getAuthAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testProceed()
165 mWebServer = new CtsTestServer(getActivity()); in testCancel()
166 String url = mWebServer.getAuthAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testCancel()
180 mWebServer = new CtsTestServer(getActivity()); in testUseHttpAuthUsernamePassword()
181 String url = mWebServer.getAuthAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testUseHttpAuthUsernamePassword()
DWebViewClientTest.java58 private CtsTestServer mWebServer; field in WebViewClientTest
97 if (mWebServer != null) { in tearDown()
98 mWebServer.shutdown(); in tearDown()
149 mWebServer = new CtsTestServer(getActivity()); in testShouldOverrideUrlLoadingOnCreateWindow()
179 mOnUiThread.loadUrl(mWebServer.getAssetUrl(TestHtmlConstants.BLANK_TAG_URL)); in testShouldOverrideUrlLoadingOnCreateWindow()
193 assertEquals(mWebServer.getAssetUrl(TestHtmlConstants.PAGE_WITH_LINK_URL), in testShouldOverrideUrlLoadingOnCreateWindow()
223 mWebServer = new CtsTestServer(getActivity()); in testLoadPage()
224 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testLoadPage()
317 mWebServer = new CtsTestServer(getActivity()); in testOnReceivedErrorForSubresource()
320 String url = mWebServer.getAssetUrl(TestHtmlConstants.BAD_IMAGE_PAGE_URL); in testOnReceivedErrorForSubresource()
[all …]
DWebHistoryItemTest.java34 private CtsTestServer mWebServer; field in WebHistoryItemTest
60 mWebServer = new CtsTestServer(getActivity()); in setUp()
72 mWebServer.shutdown(); in tearDown()
96 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testWebHistoryItem()
115 url = mWebServer.getAssetUrl(TestHtmlConstants.BR_TAG_URL); in testWebHistoryItem()
DWebChromeClientTest.java52 private CtsTestServer mWebServer; field in WebChromeClientTest
69 mWebServer = new CtsTestServer(getActivity()); in setUp()
77 if (mWebServer != null) { in tearDown()
78 mWebServer.shutdown(); in tearDown()
95 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnProgressChanged()
114 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnReceivedTitle()
146 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testOnReceivedIcon()
171 mOnUiThread.loadUrlAndWaitForCompletion(mWebServer. in runWindowTest()
245 mWebServer.getAssetUrl(TestHtmlConstants.JS_UNLOAD_URL)); in testOnJsBeforeUnloadIsCalled()
255 mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL)); in testOnJsBeforeUnloadIsCalled()
[all …]
DWebViewTest.java158 private CtsTestServer mWebServer; field in WebViewTest
192 if (mWebServer != null) { in tearDown()
204 assertNull(mWebServer); in startWebServer()
205 mWebServer = new CtsTestServer(getActivity(), secure); in startWebServer()
209 assertNotNull(mWebServer); in stopWebServer()
215 mWebServer.shutdown(); in stopWebServer()
216 mWebServer = null; in stopWebServer()
327 String url = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testLoadUrl()
335 HttpRequest request = mWebServer.getLastRequest(TestHtmlConstants.HELLO_WORLD_URL); in testLoadUrl()
362 final String networkUrl = mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL); in testPostUrlWithNetworkUrl()
[all …]
DWebViewZoomTest.java50 private CtsTestServer mWebServer; field in WebViewZoomTest
91 if (mWebServer != null) { in tearDown()
98 assertNotNull(mWebServer); in stopWebServer()
104 mWebServer.shutdown(); in stopWebServer()
105 mWebServer = null; in stopWebServer()
111 assertNull(mWebServer); in setUpPage()
114 mWebServer = new CtsTestServer(getActivity(), CtsTestServer.SslMode.TRUST_ANY_CLIENT); in setUpPage()
116 mWebServer.getAssetUrl(TestHtmlConstants.HELLO_WORLD_URL)); in setUpPage()
DWebSettingsTest.java86 private CtsTestServer mWebServer; field in WebSettingsTest
107 if (mWebServer != null) { in tearDown()
108 mWebServer.shutdown(); in tearDown()
213 String url = mWebServer.getUserAgentUrl(); in testAccessUserAgentString()
296 int initialRequestCount = mWebServer.getRequestCount(); in testAccessCacheMode_cacheElseNetwork()
299 int requestCountAfterFirstLoad = mWebServer.getRequestCount(); in testAccessCacheMode_cacheElseNetwork()
305 int requestCountAfterSecondLoad = mWebServer.getRequestCount(); in testAccessCacheMode_cacheElseNetwork()
321 int initialRequestCount = mWebServer.getRequestCount(); in testAccessCacheMode_noCache()
324 int requestCountAfterFirstLoad = mWebServer.getRequestCount(); in testAccessCacheMode_noCache()
330 int requestCountAfterSecondLoad = mWebServer.getRequestCount(); in testAccessCacheMode_noCache()
[all …]
/cts/tests/tests/net/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.java76 private CtsTestServer mWebServer; field in DownloadManagerTestBase
82 mWebServer = new CtsTestServer(mContext); in setUp()
88 mWebServer.shutdown(); in tearDown()
264 return Uri.parse(mWebServer.getTestDownloadUrl("cts-good-download", 0)); in getGoodUrl()
268 return Uri.parse(mWebServer.getBaseUri() + "/nosuchurl"); in getBadUrl()
272 return Uri.parse(mWebServer.getTestDownloadUrl("cts-minimum-download", in getMinimumDownloadUrl()
277 return Uri.parse(mWebServer.getAssetUrl(asset)); in getAssetUrl()