| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PictureMatchers_h | 5 #ifndef PictureMatchers_h |
| 6 #define PictureMatchers_h | 6 #define PictureMatchers_h |
| 7 | 7 |
| 8 #include "platform/graphics/Color.h" | 8 #include "platform/graphics/Color.h" |
| 9 #include "skia/ext/cdl_common.h" |
| 9 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
| 10 | 11 |
| 11 class SkPicture; | |
| 12 | |
| 13 namespace blink { | 12 namespace blink { |
| 14 | 13 |
| 15 class FloatRect; | 14 class FloatRect; |
| 16 | 15 |
| 17 // Matches if the picture draws exactly one rectangle, which (after accounting | 16 // Matches if the picture draws exactly one rectangle, which (after accounting |
| 18 // for the total transformation matrix) matches the rect provided, and whose | 17 // for the total transformation matrix) matches the rect provided, and whose |
| 19 // paint has the color requested. | 18 // paint has the color requested. |
| 20 ::testing::Matcher<const SkPicture&> drawsRectangle(const FloatRect&, Color); | 19 ::testing::Matcher<const CdlPicture&> drawsRectangle(const FloatRect&, Color); |
| 21 | 20 |
| 22 } // namespace blink | 21 } // namespace blink |
| 23 | 22 |
| 24 #endif // PictureMatchers_h | 23 #endif // PictureMatchers_h |
| OLD | NEW |