Home
last modified time | relevance | path

Searched refs:webViewClient (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewClientTest.java90 final WebViewClient webViewClient = new WebViewClient(); in testShouldOverrideUrlLoadingDefault() local
91 assertFalse(webViewClient.shouldOverrideUrlLoading(mOnUiThread.getWebView(), new String())); in testShouldOverrideUrlLoadingDefault()
99 final MockWebViewClient webViewClient = new MockWebViewClient(); in testShouldOverrideUrlLoading() local
100 mOnUiThread.setWebViewClient(webViewClient); in testShouldOverrideUrlLoading()
107 assertEquals(TEST_URL, webViewClient.getLastShouldOverrideUrl()); in testShouldOverrideUrlLoading()
108 assertNotNull(webViewClient.getLastShouldOverrideResourceRequest()); in testShouldOverrideUrlLoading()
109 assertTrue(webViewClient.getLastShouldOverrideResourceRequest().isForMainFrame()); in testShouldOverrideUrlLoading()
110 assertFalse(webViewClient.getLastShouldOverrideResourceRequest().isRedirect()); in testShouldOverrideUrlLoading()
111 assertFalse(webViewClient.getLastShouldOverrideResourceRequest().hasGesture()); in testShouldOverrideUrlLoading()
188 final MockWebViewClient webViewClient = new MockWebViewClient(); in testLoadPage() local
[all …]
DWebViewSslTest.java554 final SslErrorWebViewClient webViewClient = new SslErrorWebViewClient(mOnUiThread); in testClearSslPreferences() local
557 mOnUiThread.setWebViewClient(webViewClient); in testClearSslPreferences()
560 assertTrue(webViewClient.wasOnReceivedSslErrorCalled()); in testClearSslPreferences()
565 webViewClient.resetWasOnReceivedSslErrorCalled(); in testClearSslPreferences()
567 assertTrue(webViewClient.wasOnReceivedSslErrorCalled()); in testClearSslPreferences()
572 webViewClient.resetWasOnReceivedSslErrorCalled(); in testClearSslPreferences()
574 assertFalse(webViewClient.wasOnReceivedSslErrorCalled()); in testClearSslPreferences()
605 final MockWebViewClient webViewClient = new MockWebViewClient(); in testOnReceivedSslError() local
606 mOnUiThread.setWebViewClient(webViewClient); in testOnReceivedSslError()
610 assertEquals(mWebView, webViewClient.webView()); in testOnReceivedSslError()
[all …]
DWebViewTest.java313 final ScaleChangedWebViewClient webViewClient = new ScaleChangedWebViewClient(); in testZoom() local
314 mOnUiThread.setWebViewClient(webViewClient); in testZoom()
329 webViewClient.waitForScaleChanged(); in testZoom()
336 webViewClient.waitForScaleChanged(); in testZoom()
343 webViewClient.waitForScaleChanged(); in testZoom()
350 webViewClient.waitForScaleChanged(); in testZoom()
361 webViewClient.waitForScaleChanged(); in testZoom()
369 webViewClient.waitForScaleChanged(); in testZoom()
386 webViewClient.waitForScaleChanged(); in testZoom()
394 webViewClient.waitForScaleChanged(); in testZoom()
[all …]
/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewOnUiThread.java109 final WebViewClient webViewClient = new WaitForLoadedClient(this); in WebViewOnUiThread() local
114 mWebView.setWebViewClient(webViewClient); in WebViewOnUiThread()
175 public void setWebViewClient(final WebViewClient webViewClient) { in setWebViewClient() argument
179 mWebView.setWebViewClient(webViewClient); in setWebViewClient()