New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 631577 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 1
Type: Bug



Sign in to add a comment

CRWWebControllerTest.WebUrlWithTrustLevel failing on iOS 10

Project Member Reported by jyqu...@chromium.org, Jul 26 2016

Issue description

CRWWebControllerTest.WebUrlWithTrustLevel failing on the Xcode8 bot, which runs iOS 10.

Disabling on iOS10+ for now, but I don't know whether this is a test issue or product issue. PTAL (or re-triage as necessary).


 
https://uberchromegw.corp.google.com/i/internal.bling.main/builders/xcode8-simulator/builds/119/steps/ios_web_unittests%20%28iPad%20Retina%20iOS%2010.0%29%20on%20Mac/logs/stdio

[ RUN      ] CRWWebControllerTest.WebUrlWithTrustLevel
2016-07-26 12:30:31.407 ios_web_unittests[73589:622907] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'OCMockObject[WKWebView]: unexpected method invoked: serverTrust
	stubbed: 	certificateChain
	stubbed: 	backForwardList
	stubbed: 	URL
	stubbed: 	setNavigationDelegate:<OCMAnyConstraint: 0x7c095f30>
	stubbed: 	setUIDelegate:<OCMAnyConstraint: 0x7c095470>
	stubbed: 	setFrame:<??>
	stubbed: 	addObserver:<CRWWebController: 0x7b17ee00> forKeyPath:<OCMAnyConstraint: 0x7c096680> options:0 context:0x0
	stubbed: 	addObserver:<OCMAnyConstraint: 0x7c096b30> forKeyPath:@"scrollView.backgroundColor" options:0 context:0x0
	stubbed: 	removeObserver:<CRWWebController: 0x7b17ee00> forKeyPath:<OCMAnyConstraint: 0x7c096d70>
	stubbed: 	removeObserver:<OCMAnyConstraint: 0x7c097070> forKeyPath:@"scrollView.backgroundColor"
	stubbed: 	scrollView
	stubbed: 	URL
	stubbed: 	hasOnlySecureContent
	stubbed: 	evaluateJavaScript:<OCMAnyConstraint: 0x7a640770> completionHandler:<OCMAnyConstraint: 0x7a638b80>'
*** First throw call stack:
(
	0   CoreFoundation                      0x035a7652 __exceptionPreprocess + 194
	1   libobjc.A.dylib                     0x0743ff66 objc_exception_throw + 52
	2   CoreFoundation                      0x035a7581 -[NSException raise] + 17
	3   ios_web_unittests                   0x004e9ea9 -[OCMockObject handleUnRecordedInvocation:] + 345
	4   ios_web_unittests                   0x004e98f9 -[OCMockObject forwardInvocation:] + 105
	5   CoreFoundation                      0x03527318 ___forwarding___ + 472
	6   CoreFoundation                      0x0352711e _CF_forwarding_prep_0 + 14
	7   ios_web_unittests                   0x005a86b8 -[CRWWebController updateSSLStatusForCurrentNavigationItem] + 600
	8   ios_web_unittests                   0x005b035f -[CRWWebController webView:didCommitNavigation:] + 2047
	9   ios_web_unittests                   0x0010ec41 _ZN12_GLOBAL__N_146CRWWebControllerTest_WebUrlWithTrustLevel_Test8TestBodyEv + 705
	10  ios_web_unittests                   0x004d9337 _ZN7testing8internal38HandleSehExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc + 103
	11  ios_web_unittests                   0x004b4a5e _ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc + 126
	12  ios_web_unittests                   0x004b495e _ZN7testing4Test3RunEv + 254
	13  ios_web_unittests                   0x004b5c14 _ZN7testing8TestInfo3RunEv + 260
	14  ios_web_unittests                   0x004b6e39 _ZN7testing8TestCase3RunEv + 265
	15  ios_web_unittests                   0x004c4379 _ZN7testing8internal12UnitTestImpl11RunAllTestsEv + 985
	16  ios_web_unittests                   0x004dbc57 _ZN7testing8internal38HandleSehExceptionsInMethodIfSupportedINS0_12UnitTestImplEbEET0_PT_MS4_FS3_vEPKc + 103
	17  ios_web_unittests                   0x004c3f0e _ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS0_12UnitTestImplEbEET0_PT_MS4_FS3_vEPKc + 126
	18  ios_web_unittests                   0x004c3ded _ZN7testing8UnitTest3RunEv + 349
	19  ios_web_unittests                   0x00452363 _Z13RUN_ALL_TESTSv + 19
	20  ios_web_unittests                   0x00451952 _ZN4base9TestSuite3RunEv + 290
	21  ios_web_unittests                   0x00454c8a -[ChromeUnitTestDelegate runTests] + 42
	22  Foundation                          0x042cfd11 __NSFireDelayedPerform + 442
	23  CoreFoundation                      0x03534a96 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22
	24  CoreFoundation                      0x035345ad __CFRunLoopDoTimer + 1213
	25  CoreFoundation                      0x035340bf __CFRunLoopDoTimers + 255
	26  CoreFoundation                      0x0352b860 __CFRunLoopRun + 2208
	27  CoreFoundation                      0x0352ad49 CFRunLoopRunSpecific + 281
	28  CoreFoundation                      0x0352ac1b CFRunLoopRunInMode + 123
	29  GraphicsServices                    0x091a0b42 GSEventRunModal + 177
	30  GraphicsServices                    0x091a09bd GSEventRun + 80
	31  UIKit                               0x0473aa48 UIApplicationMain + 148
	32  ios_web_unittests                   0x0045505a _ZN4base18RunTestsFromIOSAppEv + 106
	33  ios_web_unittests                   0x0045185f _ZN4base9TestSuite3RunEv + 47
	34  ios_web_unittests                   0x000be6e5 _ZN4base8internal13FunctorTraitsIMNS_9TestSuiteEFivEvE6InvokeIPN3web12WebTestSuiteEJEEEiS4_OT_DpOT0_ + 101
	35  ios_web_unittests                   0x000be617 _ZN4base8internal12InvokeHelperILb0EiE8MakeItSoIRKMNS_9TestSuiteEFivEJPN3web12WebTestSuiteEEEEiOT_DpOT0_ + 87
	36  ios_web_unittests                   0x000be591 _ZN4base8internal7InvokerINS0_9BindStateIMNS_9TestSuiteEFivEJNS0_17UnretainedWrapperIN3web12WebTestSuiteEEEEEEFivEE7RunImplIRKS5_RKNSt3__15tupleIJS9_EEEJLm0EEEEiOT_OT0_NS_13IndexSequenceIJXspT1_EEEE + 97
	37  ios_web_unittests                   0x000be1ea _ZN4base8internal7InvokerINS0_9BindStateIMNS_9TestSuiteEFivEJNS0_17UnretainedWrapperIN3web12WebTestSuiteEEEEEEFivEE3RunEPNS0_13BindStateBaseE + 42
	38  ios_web_unittests                   0x0045144b _ZNK4base8CallbackIFivELNS_8internal8CopyModeE1EE3RunEv + 43
	39  ios_web_unittests                   0x004513d5 _ZN4base15LaunchUnitTestsEiPPcRKNS_8CallbackIFivELNS_8internal8CopyModeE1EEE + 1157
	40  ios_web_unittests                   0x000bdf51 main + 177
	41  libdyld.dylib                       0x07c8b799 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Project Member

Comment 2 by bugdroid1@chromium.org, Jul 26 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/763fe1a92b2409ec3dc1850416eba5db4da0d3c2

commit 763fe1a92b2409ec3dc1850416eba5db4da0d3c2
Author: eugenebut <eugenebut@chromium.org>
Date: Tue Jul 26 23:06:28 2016

[ios] Fixed CRWWebControllerTest.WebUrlWithTrustLevel for iOS 10.

Stub |serverTrust| call instead of |certificateChain|.
Test was broken by https://codereview.chromium.org/2151693008/

BUG= 631577 

Review-Url: https://codereview.chromium.org/2185823002
Cr-Commit-Position: refs/heads/master@{#407953}

[modify] https://crrev.com/763fe1a92b2409ec3dc1850416eba5db4da0d3c2/ios/web/web_state/ui/crw_web_controller_unittest.mm

Status: Fixed (was: Assigned)
Components: Tests>Disabled
Labels: Test-Disabled

Sign in to add a comment