Index: ios/web/web_state/ui/crw_web_controller_unittest.mm |
diff --git a/ios/web/web_state/ui/crw_web_controller_unittest.mm b/ios/web/web_state/ui/crw_web_controller_unittest.mm |
index 830504a9584298099ab7dc91ac1ea049696d8c48..552f4cd3683c740b2b0b4a2d2487342a8d769da2 100644 |
--- a/ios/web/web_state/ui/crw_web_controller_unittest.mm |
+++ b/ios/web/web_state/ui/crw_web_controller_unittest.mm |
@@ -839,7 +839,8 @@ TEST_F(CRWWKWebViewWebControllerTest, SSLError) { |
[NSError errorWithDomain:NSURLErrorDomain |
code:NSURLErrorServerCertificateHasUnknownRoot |
userInfo:nil]; |
- [static_cast<id<WKNavigationDelegate>>(webController_.get()) webView:nil |
+ WKWebView* webView = static_cast<WKWebView*>([webController_ webView]); |
+ [static_cast<id<WKNavigationDelegate>>(webController_.get()) webView:webView |
didFailProvisionalNavigation:nil |
withError:error]; |