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

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

Issue 1390123002: (WIP) Paint property hierarchy approach 1 of 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 PaintPrinters_h 5 #ifndef PaintPrinters_h
6 #define PaintPrinters_h 6 #define PaintPrinters_h
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 namespace blink { 10 namespace blink {
11 11
12 struct PaintChunk; 12 struct PaintChunk;
13 struct PaintProperties; 13 struct PaintProperties;
14 class TransformationPaintProperty;
14 15
15 // GTest print support for platform paint classes. 16 // GTest print support for platform paint classes.
16 // 17 //
17 // To avoid ODR violations, these should also be declared in the respective 18 // To avoid ODR violations, these should also be declared in the respective
18 // headers defining these types. This is required because otherwise a template 19 // headers defining these types. This is required because otherwise a template
19 // instantiation may be instantiated differently, depending on whether this 20 // instantiation may be instantiated differently, depending on whether this
20 // declaration is found. 21 // declaration is found.
21 // 22 //
22 // As a result, it is not necessary to include this file in tests in order to 23 // As a result, it is not necessary to include this file in tests in order to
23 // use these printers. If, however, you get a link error about these symbols, 24 // use these printers. If, however, you get a link error about these symbols,
24 // you need to make sure the blink_platform_test_support target is linked in 25 // you need to make sure the blink_platform_test_support target is linked in
25 // your unit test binary. 26 // your unit test binary.
26 void PrintTo(const PaintChunk&, std::ostream*); 27 void PrintTo(const PaintChunk&, std::ostream*);
27 void PrintTo(const PaintProperties&, std::ostream*); 28 void PrintTo(const PaintProperties&, std::ostream*);
29 void PrintTo(const TransformationPaintProperty&, std::ostream*);
28 30
29 } // namespace blink 31 } // namespace blink
30 32
31 #endif // PaintPrinters_h 33 #endif // PaintPrinters_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698