Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4b2d3c32fb1a7163b0fa359c7580624ebefb3e3a
      
https://github.com/WebKit/WebKit/commit/4b2d3c32fb1a7163b0fa359c7580624ebefb3e3a
  Author: Aditya Keerthi <[email protected]>
  Date:   2025-06-18 (Wed, 18 Jun 2025)

  Changed paths:
    M Tools/TestWebKitAPI/cocoa/TestCocoa.h
    M Tools/TestWebKitAPI/cocoa/TestCocoa.mm

  Log Message:
  -----------
  GoogleTest assertions should support CG/NSSize
https://bugs.webkit.org/show_bug.cgi?id=294657
rdar://153708044

Reviewed by Abrar Rahman Protyasha.

Add operator== and operator<< overloads for `CGSize` and `NSSize` in order
to allow for the use of these types with EXPECT_EQ() and other GoogleTest
assertions.

The benefits are reduced repetition, and more useful failure output which
prints out the values of both sizes.

* Tools/TestWebKitAPI/cocoa/TestCocoa.h:
* Tools/TestWebKitAPI/cocoa/TestCocoa.mm:
(ostreamRectCommon):
(ostreamSizeCommon):
(operator<<):
(operator==):

Canonical link: https://commits.webkit.org/296385@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to