sk_color_eq.h 763 B

1234567891011121314151617181920212223
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef UI_GFX_TEST_SK_COLOR_EQ_H_
  5. #define UI_GFX_TEST_SK_COLOR_EQ_H_
  6. #include "testing/gtest/include/gtest/gtest.h"
  7. #include "third_party/skia/include/core/SkColor.h"
  8. namespace gfx {
  9. #define EXPECT_SKCOLOR_EQ(a, b) \
  10. EXPECT_PRED_FORMAT2(::gfx::AssertSkColorsEqual, a, b)
  11. ::testing::AssertionResult AssertSkColorsEqual(const char* lhs_expr,
  12. const char* rhs_expr,
  13. SkColor lhs,
  14. SkColor rhs);
  15. } // namespace gfx
  16. #endif // UI_GFX_TEST_SK_COLOR_EQ_H_