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

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

Issue 2267183003: Switch from PrintTo to operator<< for platform printers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698