Home
last modified time | relevance | path

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

/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewSslTest.java553 final SslErrorWebViewClient webViewClient = new SslErrorWebViewClient(mOnUiThread); in testClearSslPreferences() local
556 mOnUiThread.setWebViewClient(webViewClient); in testClearSslPreferences()
559 assertTrue(webViewClient.wasOnReceivedSslErrorCalled()); in testClearSslPreferences()
564 webViewClient.resetWasOnReceivedSslErrorCalled(); in testClearSslPreferences()
566 assertTrue(webViewClient.wasOnReceivedSslErrorCalled()); in testClearSslPreferences()
571 webViewClient.resetWasOnReceivedSslErrorCalled(); in testClearSslPreferences()
573 assertFalse(webViewClient.wasOnReceivedSslErrorCalled()); in testClearSslPreferences()
604 final MockWebViewClient webViewClient = new MockWebViewClient(); in testOnReceivedSslError() local
605 mOnUiThread.setWebViewClient(webViewClient); in testOnReceivedSslError()
609 assertEquals(mWebView, webViewClient.webView()); in testOnReceivedSslError()
[all …]
DWebViewClientTest.java114 final WebViewClient webViewClient = new WebViewClient(); in testShouldOverrideUrlLoadingDefault() local
115 assertFalse(webViewClient.shouldOverrideUrlLoading(mOnUiThread.getWebView(), new String())); in testShouldOverrideUrlLoadingDefault()
128 final MockWebViewClient webViewClient = new MockWebViewClient(); in testShouldOverrideUrlLoading() local
129 mOnUiThread.setWebViewClient(webViewClient); in testShouldOverrideUrlLoading()
136 assertEquals(TEST_URL, webViewClient.getLastShouldOverrideUrl()); in testShouldOverrideUrlLoading()
137 assertNotNull(webViewClient.getLastShouldOverrideResourceRequest()); in testShouldOverrideUrlLoading()
138 assertTrue(webViewClient.getLastShouldOverrideResourceRequest().isForMainFrame()); in testShouldOverrideUrlLoading()
139 assertFalse(webViewClient.getLastShouldOverrideResourceRequest().isRedirect()); in testShouldOverrideUrlLoading()
140 assertFalse(webViewClient.getLastShouldOverrideResourceRequest().hasGesture()); in testShouldOverrideUrlLoading()
221 final MockWebViewClient webViewClient = new MockWebViewClient(); in testLoadPage() local
[all …]
/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewOnUiThread.java85 public void setWebViewClient(final WebViewClient webViewClient) { in setWebViewClient() argument
87 mWebView.setWebViewClient(webViewClient); in setWebViewClient()