| 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 TransformPrinters_h | |
| 6 #define TransformPrinters_h | |
| 7 | |
| 8 #include <iosfwd> | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 class AffineTransform; | |
| 13 class TransformationMatrix; | |
| 14 | |
| 15 // GTest print support for platform transform classes. | |
| 16 // | |
| 17 // 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 // instantiation may be instantiated differently, depending on whether this | |
| 20 // declaration is found. | |
| 21 // | |
| 22 // 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 // you need to make sure the blink_platform_test_support target is linked in | |
| 25 // your unit test binary. | |
| 26 void PrintTo(const AffineTransform&, std::ostream*); | |
| 27 void PrintTo(const TransformationMatrix&, std::ostream*); | |
| 28 | |
| 29 } // namespace blink | |
| 30 | |
| 31 #endif // TransformPrinters_h | |
| OLD | NEW |