OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 <limits> | 5 #include <limits> |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
| 10 #include "build/build_config.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
9 #include "ui/gfx/geometry/rect.h" | 12 #include "ui/gfx/geometry/rect.h" |
10 #include "ui/gfx/geometry/rect_conversions.h" | 13 #include "ui/gfx/geometry/rect_conversions.h" |
11 #include "ui/gfx/test/gfx_util.h" | 14 #include "ui/gfx/test/gfx_util.h" |
12 | 15 |
13 #if defined(OS_WIN) | 16 #if defined(OS_WIN) |
14 #include <windows.h> | 17 #include <windows.h> |
15 #endif | 18 #endif |
16 | 19 |
17 namespace gfx { | 20 namespace gfx { |
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 0.0f, f.ManhattanInternalDistance(gfx::RectF(-1.0f, 0.0f, 1.1f, 1.0f))); | 909 0.0f, f.ManhattanInternalDistance(gfx::RectF(-1.0f, 0.0f, 1.1f, 1.0f))); |
907 EXPECT_FLOAT_EQ( | 910 EXPECT_FLOAT_EQ( |
908 0.1f + kEpsilon, | 911 0.1f + kEpsilon, |
909 f.ManhattanInternalDistance(gfx::RectF(-1.5f, 0.0f, 1.4f, 1.0f))); | 912 f.ManhattanInternalDistance(gfx::RectF(-1.5f, 0.0f, 1.4f, 1.0f))); |
910 EXPECT_FLOAT_EQ( | 913 EXPECT_FLOAT_EQ( |
911 kEpsilon, | 914 kEpsilon, |
912 f.ManhattanInternalDistance(gfx::RectF(-1.5f, 0.0f, 1.5f, 1.0f))); | 915 f.ManhattanInternalDistance(gfx::RectF(-1.5f, 0.0f, 1.5f, 1.0f))); |
913 } | 916 } |
914 | 917 |
915 } // namespace gfx | 918 } // namespace gfx |
OLD | NEW |