#include "components/headless/test/bitmap_utils.h"
#include <cstdlib>
#include "base/logging.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
namespace headless {
namespace {
constexpr int kColorChannelTolerance = …;
bool IsDifferentColorChannel(U8CPU channel, U8CPU base_channel) { … }
bool IsDifferentColor(SkColor color, SkColor base_color) { … }
}
bool CheckColoredRect(const SkBitmap& bitmap,
SkColor rect_color,
SkColor bkgr_color,
int margins) { … }
bool CheckColoredRect(const SkBitmap& bitmap,
SkColor rect_color,
SkColor bkgr_color) { … }
}