blob: 62ce232dd1642f2c8e3b609e26b0d1e0ee970723 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef PictureMatchers_h
#define PictureMatchers_h
#include "platform/graphics/Color.h"
#include "testing/gmock/include/gmock/gmock.h"
class SkPicture;
namespace blink {
class FloatRect;
// Matches if the picture draws exactly one rectangle, which (after accounting
// for the total transformation matrix) matches the rect provided, and whose
// paint has the color requested.
::testing::Matcher<const SkPicture&> drawsRectangle(const FloatRect&, Color);
} // namespace blink
#endif // PictureMatchers_h