-
Notifications
You must be signed in to change notification settings - Fork 6k
better output from engine layer unit test failures #51975
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact "@test-exemption-reviewer" in the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
This PR has no tests because it only affects the console output while running unit tests with failures. |
Wait just adding this |
Yes, it includes a bunch of ostream operators that teach the gtest macros how to print out the Skia objects. Without them gtest just defaults to a hex dump of the memory. |
GoogleTest is using template lookup to find the best available print function for a given data type (see Skia does not provide implementations of So there is a risk that the availability of
|
To ensure that this is always done consistently I'd suggest:
|
I don't think this is worth it. We are on a path to remove Skia geometry objects from most of the engine so we don't need a long term solution. This simple change works fine with minimal changes. I'd like to keep it that simple. |
test-exempt: header only change for bizarre gtest semantics. |
…146524) flutter/engine@5a824e2...5dca50d 2024-04-09 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Delete engine v1 android embedding (#51229)" (flutter/engine#51996) 2024-04-09 34871572+gmackall@users.noreply.github.com Delete engine v1 android embedding (flutter/engine#51229) 2024-04-09 flar@google.com better output from engine layer unit test failures (flutter/engine#51975) 2024-04-09 zanderso@users.noreply.github.com Revert "Roll Dart SDK from 78174b41ab0f to 7a5e410f982e (1 revision) (#51980)" (flutter/engine#51990) 2024-04-09 jacksongardner@google.com [skwasm] Reify the SkPicture pointer as the right type. (flutter/engine#51991) 2024-04-09 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Roll Dart SDK from 7a5e410f982e to db99af14c4bc (1 revision) (#51986)" (flutter/engine#51989) 2024-04-09 jason-simmons@users.noreply.github.com Move the Dart SDK to //flutter/third_party/dart (flutter/engine#51917) 2024-04-09 matej.knopp@gmail.com [macOS] Implement hit testing and handle platform view cursor changes (flutter/engine#43101) 2024-04-09 skia-flutter-autoroll@skia.org Roll Dart SDK from 7a5e410f982e to db99af14c4bc (1 revision) (flutter/engine#51986) 2024-04-09 skia-flutter-autoroll@skia.org Roll Dart SDK from 78174b41ab0f to 7a5e410f982e (1 revision) (flutter/engine#51980) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC chinmaygarde@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…lutter#146524) flutter/engine@5a824e2...5dca50d 2024-04-09 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Delete engine v1 android embedding (flutter#51229)" (flutter/engine#51996) 2024-04-09 34871572+gmackall@users.noreply.github.com Delete engine v1 android embedding (flutter/engine#51229) 2024-04-09 flar@google.com better output from engine layer unit test failures (flutter/engine#51975) 2024-04-09 zanderso@users.noreply.github.com Revert "Roll Dart SDK from 78174b41ab0f to 7a5e410f982e (1 revision) (flutter#51980)" (flutter/engine#51990) 2024-04-09 jacksongardner@google.com [skwasm] Reify the SkPicture pointer as the right type. (flutter/engine#51991) 2024-04-09 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Roll Dart SDK from 7a5e410f982e to db99af14c4bc (1 revision) (flutter#51986)" (flutter/engine#51989) 2024-04-09 jason-simmons@users.noreply.github.com Move the Dart SDK to //flutter/third_party/dart (flutter/engine#51917) 2024-04-09 matej.knopp@gmail.com [macOS] Implement hit testing and handle platform view cursor changes (flutter/engine#43101) 2024-04-09 skia-flutter-autoroll@skia.org Roll Dart SDK from 7a5e410f982e to db99af14c4bc (1 revision) (flutter/engine#51986) 2024-04-09 skia-flutter-autoroll@skia.org Roll Dart SDK from 78174b41ab0f to 7a5e410f982e (1 revision) (flutter/engine#51980) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC chinmaygarde@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
The engine has ostream conversions for most Skia objects, but none of the test files include the files where they are defined. Adding the include file to the
layer_test.h
file will include them on any file which does unit testing on the engine layers.