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

Unified Diff: ui/gfx/transform_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/geometry/safe_integer_conversions_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/transform_unittest.cc
diff --git a/ui/gfx/transform_unittest.cc b/ui/gfx/transform_unittest.cc
index 19441425e4b8b99b03e8e2bd05b99e38a06ef247..eb0b2fdcc69980f4f704e84d3f2fc4fa1c2f3146 100644
--- a/ui/gfx/transform_unittest.cc
+++ b/ui/gfx/transform_unittest.cc
@@ -448,10 +448,6 @@ TEST(XFormTest, ConcatTranslate2D) {
{ 0, 0, 10.0f, 20.0f, 10, 20},
{ 0, 0, -10.0f, -20.0f, 0, 0},
{ 0, 0, -10.0f, -20.0f, -10, -20},
- { 0, 0,
- std::numeric_limits<float>::quiet_NaN(),
- std::numeric_limits<float>::quiet_NaN(),
- 10, 20},
};
Transform xform;
@@ -481,7 +477,6 @@ TEST(XFormTest, ConcatScale2D) {
{ 1, .1f, 1},
{ 1, 100.0f, 100},
{ 1, -1.0f, -100},
- { 1, std::numeric_limits<float>::quiet_NaN(), 1}
};
Transform xform;
@@ -513,7 +508,6 @@ TEST(XFormTest, ConcatRotate2D) {
{ 1, 0, 90.0f, 0, 1},
{ 1, 0, 360.0f, 0, 1},
{ 1, 0, 0.0f, 0, 1},
- { 1, 0, std::numeric_limits<float>::quiet_NaN(), 1, 0}
};
Transform xform;
@@ -541,10 +535,6 @@ TEST(XFormTest, SetTranslate2D) {
{ 0, 0, 10.0f, 20.0f, 10, 20},
{ 10, 20, 10.0f, 20.0f, 20, 40},
{ 10, 20, 0.0f, 0.0f, 10, 20},
- { 0, 0,
- std::numeric_limits<float>::quiet_NaN(),
- std::numeric_limits<float>::quiet_NaN(),
- 0, 0}
};
for (size_t i = 0; i < arraysize(test_cases); ++i) {
@@ -597,7 +587,6 @@ TEST(XFormTest, SetScale2D) {
{ 1, 1.0f, 1},
{ 1, 0.0f, 0},
{ 0, 10.0f, 0},
- { 1, std::numeric_limits<float>::quiet_NaN(), 0},
};
for (size_t i = 0; i < arraysize(test_cases); ++i) {
« no previous file with comments | « ui/gfx/geometry/safe_integer_conversions_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698