#include "ui/gfx/test/sk_color_eq.h"
#include <iomanip>
#include <string>
namespace gfx {
namespace {
std::string ColorAsString(SkColor color) { … }
bool ColorComponentsClose(SkColor component1,
SkColor component2,
int max_deviation) { … }
}
::testing::AssertionResult AssertSkColorsEqual(const char* lhs_expr,
const char* rhs_expr,
SkColor lhs,
SkColor rhs) { … }
bool ColorsClose(SkColor color1,
SkColor color2,
int max_per_channel_deviation) { … }
::testing::AssertionResult AssertSkColorsClose(
const char* lhs_expr,
const char* rhs_expr,
const char* max_per_channel_deviation_expr,
SkColor lhs,
SkColor rhs,
int max_per_channel_deviation) { … }
}