#include "third_party/blink/renderer/platform/testing/picture_matchers.h"
#include <utility>
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkPicture.h"
#include "ui/gfx/geometry/rect_conversions.h"
#include "ui/gfx/geometry/skia_conversions.h"
namespace blink {
namespace {
class DrawsRectangleCanvas : public SkCanvas { … };
class DrawsRectanglesMatcher
: public testing::MatcherInterface<const SkPicture&> { … };
}
testing::Matcher<const SkPicture&> DrawsRectangle(const gfx::RectF& rect,
Color color) { … }
testing::Matcher<const SkPicture&> DrawsRectangles(
const Vector<RectWithColor>& rects_with_color) { … }
}