commit | 3d0748d6ff8b124420e4d467db699ba1596106d6 | [log] [tgz] |
---|---|---|
author | Michael Tang <tangm@microsoft.com> | Fri Jan 06 01:39:16 2023 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jan 06 01:39:16 2023 |
tree | 1b84b133a3fc6fe9c3692dcfebd269ce4e47ce99 | |
parent | 146fcade1e13181cd504a6ac24fd1a7e2e2272bb [diff] |
Add EXPECT_SKCOLORS_CLOSE macro This CL moves gfx::ColorsClose from image_unittest_util.cc to sk_color_eq.cc and wraps it in a macro. This allows for tests to compare SkColors for closeness and get an assertion message that includes the RGBA value of the color as well as the expressions used in the comparison. Change-Id: I91bcf2e4f48458950dfe5e070314a6cd79bb37bf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4038344 Reviewed-by: Rafael Cintron <rafael.cintron@microsoft.com> Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Commit-Queue: Michael Tang <tangm@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1089569}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.