Home | History | Annotate | Download | only in test
      1 // Copyright 2013 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 
      5 #ifndef CC_TEST_COLOR_UTIL_H_
      6 #define CC_TEST_COLOR_UTIL_H_
      7 
      8 #include <iosfwd>
      9 #include <string>
     10 
     11 #include "testing/gtest/include/gtest/gtest.h"
     12 #include "third_party/skia/include/core/SkColor.h"
     13 
     14 namespace gfx {
     15 
     16 #define EXPECT_SKCOLOR_EQ(a, b) \
     17   EXPECT_PRED_FORMAT2(::gfx::AssertSkColorsEqual, a, b)
     18 
     19 ::testing::AssertionResult AssertSkColorsEqual(const char* lhs_expr,
     20                                                const char* rhs_expr,
     21                                                SkColor lhs,
     22                                                SkColor rhs);
     23 
     24 }  // namespace gfx
     25 
     26 #endif  // CC_TEST_COLOR_UTIL_H_
     27