Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Side by Side Diff: third_party/WebKit/Source/platform/testing/PictureMatchers.h

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698