Home
last modified time | relevance | path

Searched refs:ToCeiledInt (Results 1 – 6 of 6) sorted by relevance

/external/libchrome/ui/gfx/geometry/
Dsafe_integer_conversions_unittest.cc34 TEST(SafeIntegerConversions, ToCeiledInt) { in TEST() argument
42 EXPECT_EQ(int_max, ToCeiledInt(infinity)); in TEST()
43 EXPECT_EQ(int_max, ToCeiledInt(max)); in TEST()
44 EXPECT_EQ(int_max, ToCeiledInt(max + 100)); in TEST()
46 EXPECT_EQ(-100, ToCeiledInt(-100.5f)); in TEST()
47 EXPECT_EQ(0, ToCeiledInt(0.f)); in TEST()
48 EXPECT_EQ(101, ToCeiledInt(100.5f)); in TEST()
50 EXPECT_EQ(int_min, ToCeiledInt(-infinity)); in TEST()
51 EXPECT_EQ(int_min, ToCeiledInt(min)); in TEST()
52 EXPECT_EQ(int_min, ToCeiledInt(min - 100)); in TEST()
Drect_conversions.cc17 int right = r.width() ? ToCeiledInt(r.right()) : left; in ToEnclosingRect()
19 int bottom = r.height() ? ToCeiledInt(r.bottom()) : top; in ToEnclosingRect()
28 result.SetByBounds(ToCeiledInt(rect.x()), ToCeiledInt(rect.y()), in ToEnclosedRect()
Dvector2d_conversions.cc18 int x = ToCeiledInt(vector2d.x()); in ToCeiledVector2d()
19 int y = ToCeiledInt(vector2d.y()); in ToCeiledVector2d()
Dpoint_conversions.cc18 int x = ToCeiledInt(point.x()); in ToCeiledPoint()
19 int y = ToCeiledInt(point.y()); in ToCeiledPoint()
Dsize_conversions.cc18 int w = ToCeiledInt(size.width()); in ToCeiledSize()
19 int h = ToCeiledInt(size.height()); in ToCeiledSize()
Dsafe_integer_conversions.h20 inline int ToCeiledInt(float value) { in ToCeiledInt() function
28 inline int ToCeiledInt(double value) { in ToCeiledInt() function