Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add a unit test for client certificate authentication
https://bugs.webkit.org/show_bug.cgi?id=197800 Patch by Alex Christensen <achristensen@webkit.org> on 2019-05-14 Reviewed by Youenn Fablet. Source/WebKit: * Shared/cf/ArgumentCodersCF.cpp: Move SPI declarations to SecuritySPI.h. Source/WTF: * wtf/spi/cocoa/SecuritySPI.h: Move declarations from ArgumentCodersCF.cpp so they can be shared. Tools: Make better abstractions for reading and writing from/to TCPServer. Add a unit test that causes a client certificate authentication challenge to happen. * TestWebKitAPI/TCPServer.cpp: (TestWebKitAPI::TCPServer::TCPServer): (TestWebKitAPI::TCPServer::read): (TestWebKitAPI::TCPServer::write): (TestWebKitAPI::TCPServer::respondWithChallengeThenOK): (TestWebKitAPI::TCPServer::respondWithOK): * TestWebKitAPI/TCPServer.h: * TestWebKitAPI/Tests/WebKitCocoa/Challenge.mm: (credentialWithIdentity): (-[ChallengeDelegate webView:didReceiveAuthenticationChallenge:completionHandler:]): (TEST): (-[ClientCertificateDelegate webView:didFinishNavigation:]): (-[ClientCertificateDelegate webView:didReceiveAuthenticationChallenge:completionHandler:]): (-[ClientCertificateDelegate challengeCount]): (TestWebKitAPI::TEST): (respondWithChallengeThenOK): Deleted. (credentialWithIdentityAndKeychainPath): Deleted. * TestWebKitAPI/Tests/WebKitCocoa/PDFLinkReferrer.mm: (TEST): * TestWebKitAPI/Tests/WebKitCocoa/Proxy.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKitCocoa/WKNavigationResponse.mm: (TEST): (readRequest): Deleted. (writeResponse): Deleted. * TestWebKitAPI/Tests/WebKitCocoa/WKWebsiteDatastore.mm: (TestWebKitAPI::TEST): (TestWebKitAPI::respondWithChallengeThenOK): Deleted. Canonical link: https://commits.webkit.org/212003@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245281 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
068b22b
commit 18b0f72a304cfb9fd8a29e74c79dc6e7bfe4c121
Showing
12 changed files
with
378 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.