OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "ui/gfx/test/gfx_util.h" | 5 #include "ui/gfx/test/gfx_util.h" |
6 | 6 |
7 #include <iomanip> | 7 #include <iomanip> |
8 #include <sstream> | 8 #include <sstream> |
9 #include <string> | 9 #include <string> |
10 | 10 |
| 11 #include "ui/gfx/display.h" |
11 #include "ui/gfx/geometry/box_f.h" | 12 #include "ui/gfx/geometry/box_f.h" |
12 #include "ui/gfx/geometry/point.h" | 13 #include "ui/gfx/geometry/point.h" |
13 #include "ui/gfx/geometry/point3_f.h" | 14 #include "ui/gfx/geometry/point3_f.h" |
14 #include "ui/gfx/geometry/point_f.h" | 15 #include "ui/gfx/geometry/point_f.h" |
15 #include "ui/gfx/geometry/quad_f.h" | 16 #include "ui/gfx/geometry/quad_f.h" |
16 #include "ui/gfx/geometry/rect.h" | 17 #include "ui/gfx/geometry/rect.h" |
17 #include "ui/gfx/geometry/rect_f.h" | 18 #include "ui/gfx/geometry/rect_f.h" |
18 #include "ui/gfx/geometry/scroll_offset.h" | 19 #include "ui/gfx/geometry/scroll_offset.h" |
19 #include "ui/gfx/geometry/size.h" | 20 #include "ui/gfx/geometry/size.h" |
20 #include "ui/gfx/geometry/size_f.h" | 21 #include "ui/gfx/geometry/size_f.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 return ::testing::AssertionFailure() << "Value of: " << rhs_expr | 89 return ::testing::AssertionFailure() << "Value of: " << rhs_expr |
89 << "\n Actual: " << ColorAsString(rhs) | 90 << "\n Actual: " << ColorAsString(rhs) |
90 << "\nExpected: " << lhs_expr | 91 << "\nExpected: " << lhs_expr |
91 << "\nWhich is: " << ColorAsString(lhs); | 92 << "\nWhich is: " << ColorAsString(lhs); |
92 } | 93 } |
93 | 94 |
94 void PrintTo(const BoxF& box, ::std::ostream* os) { | 95 void PrintTo(const BoxF& box, ::std::ostream* os) { |
95 *os << box.ToString(); | 96 *os << box.ToString(); |
96 } | 97 } |
97 | 98 |
| 99 void PrintTo(const Display& display, ::std::ostream* os) { |
| 100 *os << display.ToString(); |
| 101 } |
| 102 |
98 void PrintTo(const Point& point, ::std::ostream* os) { | 103 void PrintTo(const Point& point, ::std::ostream* os) { |
99 *os << point.ToString(); | 104 *os << point.ToString(); |
100 } | 105 } |
101 | 106 |
102 void PrintTo(const Point3F& point, ::std::ostream* os) { | 107 void PrintTo(const Point3F& point, ::std::ostream* os) { |
103 *os << point.ToString(); | 108 *os << point.ToString(); |
104 } | 109 } |
105 | 110 |
106 void PrintTo(const PointF& point, ::std::ostream* os) { | 111 void PrintTo(const PointF& point, ::std::ostream* os) { |
107 *os << point.ToString(); | 112 *os << point.ToString(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 146 |
142 void PrintTo(const Vector2dF& vector, ::std::ostream* os) { | 147 void PrintTo(const Vector2dF& vector, ::std::ostream* os) { |
143 *os << vector.ToString(); | 148 *os << vector.ToString(); |
144 } | 149 } |
145 | 150 |
146 void PrintTo(const Vector3dF& vector, ::std::ostream* os) { | 151 void PrintTo(const Vector3dF& vector, ::std::ostream* os) { |
147 *os << vector.ToString(); | 152 *os << vector.ToString(); |
148 } | 153 } |
149 | 154 |
150 } // namespace gfx | 155 } // namespace gfx |
OLD | NEW |