| 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 44bc67b4dc228536fa975e2aef21e73524194175..df1a635aa5e13397862ff48c807413f9ca47369b 100644
|
| --- a/ios/web/web_state/ui/crw_web_controller_unittest.mm
|
| +++ b/ios/web/web_state/ui/crw_web_controller_unittest.mm
|
| @@ -320,8 +320,12 @@ class CRWWebControllerTest : public web::WebTestWithWebController {
|
| UIView* CreateMockWebView() {
|
| id result = [[OCMockObject mockForClass:[WKWebView class]] retain];
|
|
|
| - // Called by resetInjectedWebView
|
| - [[result stub] certificateChain];
|
| + if (base::ios::IsRunningOnIOS10OrLater()) {
|
| + [[result stub] serverTrust];
|
| + } else {
|
| + [[result stub] certificateChain];
|
| + }
|
| +
|
| [[result stub] backForwardList];
|
| [[[result stub] andReturn:[NSURL URLWithString:kTestURLString]] URL];
|
| [[result stub] setNavigationDelegate:OCMOCK_ANY];
|
|
|