haikuwebkit/Source/WebCore/loader/cocoa
John Wilander 1b304f9cfe PCM: Add error logging for CryptoKit operations
https://bugs.webkit.org/show_bug.cgi?id=227731
<rdar://80221057>

Reviewed by Brent Fulgham.

Resolves three FIXMEs for error logging in PCM's CryptoKit operations.

Source/WebCore:

No new tests. Only added logging.

* loader/PrivateClickMeasurement.h:
* loader/cocoa/PrivateClickMeasurementCocoa.mm:
(WebCore::PrivateClickMeasurement::calculateAndUpdateSourceUnlinkableToken):
(WebCore::PrivateClickMeasurement::calculateAndUpdateSourceSecretToken):

Source/WebKit:

* NetworkProcess/PrivateClickMeasurementManager.cpp:
(WebKit::PrivateClickMeasurementManager::storeUnattributed):
(WebKit::PrivateClickMeasurementManager::getSignedUnlinkableToken):

Tools:

* TestWebKitAPI/Tests/WebCore/PrivateClickMeasurement.cpp:
(TestWebKitAPI::TEST):
    Now expects an optional string instead of a bool from the function
    calls which means EXPECT_TRUE has become EXPECT_FALSE. The optional
    string is non-nullopt if it carries an error message.
* TestWebKitAPI/Tests/WebCore/cocoa/PrivateClickMeasurementCocoa.mm:
(TestWebKitAPI::TEST):
    Now expects an optional string instead of a bool from the function
    calls which means EXPECT_TRUE has become EXPECT_FALSE. The optional
    string is non-nullopt if it carries an error message.


Canonical link: https://commits.webkit.org/239502@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279710 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-07-08 05:09:53 +00:00
..
DiskCacheMonitorCocoa.h
DiskCacheMonitorCocoa.mm Reduce use of CFRetain() / CFRelease() / CFAutoRelease() in WebKit 2021-03-05 15:44:47 +00:00
PrivateClickMeasurementCocoa.mm PCM: Add error logging for CryptoKit operations 2021-07-08 05:09:53 +00:00
SubresourceLoaderCocoa.mm