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

Side by Side Diff: Source/platform/testing/GeometryPrinters.h

Issue 1285413007: Unify geometry test printers in a test support target. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: PrintTo instead of operator<< Created 5 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/platform.gni ('k') | Source/platform/testing/GeometryPrinters.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef GeometryPrinters_h
6 #define GeometryPrinters_h
7
8 #include "platform/geometry/FloatRoundedRect.h"
9 #include <iosfwd>
10
11 namespace blink {
12
13 class FloatBox;
14 class FloatPoint;
15 class FloatQuad;
16 class FloatRect;
17 class FloatSize;
18 class LayoutRect;
19
20 // GTest print support for geometry classes.
21 //
22 // To avoid ODR violations, these should also be declared in the respective
23 // headers defining these types. This is required because otherwise a template
24 // instantiation may be instantiated differently, depending on whether this
25 // declaration is found.
26 //
27 // As a result, it is not necessary to include this file in tests in order to
28 // use these printers. If, however, you get a link error about these symbols,
29 // you need to make sure the blink_platform_test_support target is linked in
30 // your unit test binary.
31 void PrintTo(const FloatBox&, std::ostream*);
32 void PrintTo(const FloatPoint&, std::ostream*);
33 void PrintTo(const FloatQuad&, std::ostream*);
34 void PrintTo(const FloatRect&, std::ostream*);
35 void PrintTo(const FloatRoundedRect&, std::ostream*);
36 void PrintTo(const FloatRoundedRect::Radii&, std::ostream*);
37 void PrintTo(const FloatSize&, std::ostream*);
38 void PrintTo(const LayoutRect&, std::ostream*);
39
40 } // namespace blink
41
42 #endif // GeometryPrinters_h
OLDNEW
« no previous file with comments | « Source/platform/platform.gni ('k') | Source/platform/testing/GeometryPrinters.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698