chromium/third_party/blink/renderer/platform/testing/picture_matchers.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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&> {};

}  // namespace

testing::Matcher<const SkPicture&> DrawsRectangle(const gfx::RectF& rect,
                                                  Color color) {}

testing::Matcher<const SkPicture&> DrawsRectangles(
    const Vector<RectWithColor>& rects_with_color) {}

}  // namespace blink