| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/transform.h" | 5 #include "ui/gfx/transform.h" |
| 6 | 6 |
| 7 #include <iostream> | 7 #include <ostream> |
| 8 #include <limits> | 8 #include <limits> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 #include "ui/gfx/point3.h" | 12 #include "ui/gfx/point3.h" |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 bool PointsAreNearlyEqual(const gfx::Point3f& lhs, | 16 bool PointsAreNearlyEqual(const gfx::Point3f& lhs, |
| 17 const gfx::Point3f& rhs) { | 17 const gfx::Point3f& rhs) { |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 EXPECT_EQ(value.yprime, pt.y()); | 506 EXPECT_EQ(value.yprime, pt.y()); |
| 507 xform.TransformPointReverse(pt); | 507 xform.TransformPointReverse(pt); |
| 508 EXPECT_EQ(pt.x(), value.x); | 508 EXPECT_EQ(pt.x(), value.x); |
| 509 EXPECT_EQ(pt.y(), value.y); | 509 EXPECT_EQ(pt.y(), value.y); |
| 510 } | 510 } |
| 511 } | 511 } |
| 512 } | 512 } |
| 513 } | 513 } |
| 514 | 514 |
| 515 } // namespace | 515 } // namespace |
| OLD | NEW |