Lines Matching refs:ToRoundedPoint
70 TEST(PointTest, ToRoundedPoint) { in TEST() argument
71 EXPECT_EQ(Point(0, 0), ToRoundedPoint(PointF(0, 0))); in TEST()
72 EXPECT_EQ(Point(0, 0), ToRoundedPoint(PointF(0.0001f, 0.0001f))); in TEST()
73 EXPECT_EQ(Point(0, 0), ToRoundedPoint(PointF(0.4999f, 0.4999f))); in TEST()
74 EXPECT_EQ(Point(1, 1), ToRoundedPoint(PointF(0.5f, 0.5f))); in TEST()
75 EXPECT_EQ(Point(1, 1), ToRoundedPoint(PointF(0.9999f, 0.9999f))); in TEST()
77 EXPECT_EQ(Point(10, 10), ToRoundedPoint(PointF(10, 10))); in TEST()
78 EXPECT_EQ(Point(10, 10), ToRoundedPoint(PointF(10.0001f, 10.0001f))); in TEST()
79 EXPECT_EQ(Point(10, 10), ToRoundedPoint(PointF(10.4999f, 10.4999f))); in TEST()
80 EXPECT_EQ(Point(11, 11), ToRoundedPoint(PointF(10.5f, 10.5f))); in TEST()
81 EXPECT_EQ(Point(11, 11), ToRoundedPoint(PointF(10.9999f, 10.9999f))); in TEST()
83 EXPECT_EQ(Point(-10, -10), ToRoundedPoint(PointF(-10, -10))); in TEST()
84 EXPECT_EQ(Point(-10, -10), ToRoundedPoint(PointF(-10.0001f, -10.0001f))); in TEST()
85 EXPECT_EQ(Point(-10, -10), ToRoundedPoint(PointF(-10.4999f, -10.4999f))); in TEST()
86 EXPECT_EQ(Point(-11, -11), ToRoundedPoint(PointF(-10.5f, -10.5f))); in TEST()
87 EXPECT_EQ(Point(-11, -11), ToRoundedPoint(PointF(-10.9999f, -10.9999f))); in TEST()