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

Unified Diff: ui/gfx/geometry/rect_unittest.cc

Issue 1164063005: Replace gfx::ClampToInt with base::saturated_cast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clamp: . Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/canvas_skia.cc ('k') | ui/gfx/geometry/safe_integer_conversions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/geometry/rect_unittest.cc
diff --git a/ui/gfx/geometry/rect_unittest.cc b/ui/gfx/geometry/rect_unittest.cc
index 8c8370b6c6ea7fe4fc08b95100d43686ce9e2585..00a9677f0410f4fc42104f4ae70e6b2c89d365ac 100644
--- a/ui/gfx/geometry/rect_unittest.cc
+++ b/ui/gfx/geometry/rect_unittest.cc
@@ -497,11 +497,6 @@ TEST(RectTest, ToEnclosedRect) {
std::numeric_limits<int>::max() },
{ 20000.5f, 20000.5f, 0.5f, 0.5f,
20001, 20001, 0, 0 },
- { std::numeric_limits<float>::quiet_NaN(),
- std::numeric_limits<float>::quiet_NaN(),
- std::numeric_limits<float>::quiet_NaN(),
- std::numeric_limits<float>::quiet_NaN(),
- 0, 0, 0, 0 }
};
for (size_t i = 0; i < arraysize(tests); ++i) {
@@ -549,11 +544,6 @@ TEST(RectTest, ToEnclosingRect) {
std::numeric_limits<int>::max() },
{ 20000.5f, 20000.5f, 0.5f, 0.5f,
20000, 20000, 1, 1 },
- { std::numeric_limits<float>::quiet_NaN(),
- std::numeric_limits<float>::quiet_NaN(),
- std::numeric_limits<float>::quiet_NaN(),
- std::numeric_limits<float>::quiet_NaN(),
- 0, 0, 0, 0 }
};
for (size_t i = 0; i < arraysize(tests); ++i) {
« no previous file with comments | « ui/gfx/canvas_skia.cc ('k') | ui/gfx/geometry/safe_integer_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698