-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add helper methods to compare
WebCore::IPAddress
es
https://bugs.webkit.org/show_bug.cgi?id=248726 rdar://99360259 Reviewed by Tim Horton. Add a helper method to compare two `WebCore::IPAddress`-es, and use it to implement some comparison operators. Also, add an additions hook that allows us to adjust newly created `NSURLSession`s. Test: IPAddressTests.CompareIPAddresses * Source/WebCore/platform/network/DNS.h: (WebCore::IPAddress::compare const): (WebCore::IPAddress::operator< const): (WebCore::IPAddress::operator> const): (WebCore::IPAddress::operator== const): (WebCore::IPAddress::operator!= const): Add the `compare()` method, and use it to implement several binary comparison operators. * Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm: (WebKit::applyAdditionalSettings): (WebKit::createURLSession): Factor out logic to create a new `NSURLSession` into a separate helper method, and call the additions hook (`applyAdditionalSettings`) from within this new helper. (WebKit::SessionWrapper::initialize): (WebKit::NetworkSessionCocoa::clearCredentials): * Tools/TestWebKitAPI/Tests/WebCore/IPAddressTests.cpp: (TestWebKitAPI::TEST): Canonical link: https://commits.webkit.org/257443@main
- Loading branch information
Showing
3 changed files
with
66 additions
and
4 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