Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Unified Diff: ios/web/web_state/ui/crw_web_controller_unittest.mm

Issue 2185823002: [ios] Fixed CRWWebControllerTest.WebUrlWithTrustLevel for iOS 10. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698