OLD | NEW |
(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 |
OLD | NEW |