Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WKAttachmentTests: Return BOOL from helper methods that take NSError …
…** argument https://bugs.webkit.org/show_bug.cgi?id=249198 <rdar://103280901> Reviewed by Wenson Hsieh. Change helper methods that take an `NSError **` argument to return `BOOL`. This addresses a clang static analyer warning for the osx.cocoa.NSError checker, and improves the tests since they all pass `nil` for the `error:` parameter and were not checking for errors. * Tools/TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm: (-[_WKAttachment synchronouslySetFileWrapper:newContentType:error:]): (-[_WKAttachment synchronouslySetData:newContentType:newFilename:error:]): - Change methods to return BOOL instead of void. (TestWebKitAPI::TEST): - Update tests to check return value of these methods since they all pass `nil` for the `error:` parameter. Canonical link: https://commits.webkit.org/257790@main
- Loading branch information
Showing
1 changed file
with
38 additions
and
17 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