Lines Matching refs:ConvertUnit
12 EXPECT_EQ(100, ConvertUnit(100, 100, 100)); in TEST()
13 EXPECT_EQ(-100, ConvertUnit(-100, 100, 100)); in TEST()
14 EXPECT_EQ(0, ConvertUnit(0, 100, 100)); in TEST()
15 EXPECT_EQ(99, ConvertUnit(99, 100, 100)); in TEST()
16 EXPECT_EQ(101, ConvertUnit(101, 100, 100)); in TEST()
17 EXPECT_EQ(99900, ConvertUnit(999, 10, 1000)); in TEST()
18 EXPECT_EQ(100100, ConvertUnit(1001, 10, 1000)); in TEST()
21 EXPECT_EQ(10, ConvertUnit(999, 1000, 10)); in TEST()
22 EXPECT_EQ(10, ConvertUnit(950, 1000, 10)); in TEST()
23 EXPECT_EQ(9, ConvertUnit(949, 1000, 10)); in TEST()
24 EXPECT_EQ(10, ConvertUnit(1001, 1000, 10)); in TEST()
25 EXPECT_EQ(10, ConvertUnit(1049, 1000, 10)); in TEST()
26 EXPECT_EQ(11, ConvertUnit(1050, 1000, 10)); in TEST()
27 EXPECT_EQ(-10, ConvertUnit(-999, 1000, 10)); in TEST()
28 EXPECT_EQ(-10, ConvertUnit(-950, 1000, 10)); in TEST()
29 EXPECT_EQ(-9, ConvertUnit(-949, 1000, 10)); in TEST()
30 EXPECT_EQ(-10, ConvertUnit(-1001, 1000, 10)); in TEST()
31 EXPECT_EQ(-10, ConvertUnit(-1049, 1000, 10)); in TEST()
32 EXPECT_EQ(-11, ConvertUnit(-1050, 1000, 10)); in TEST()
34 EXPECT_EQ(0, ConvertUnit(2, 1000000000, 1)); in TEST()
35 EXPECT_EQ(2000000000, ConvertUnit(2, 1, 1000000000)); in TEST()
37 static_cast<unsigned int>(ConvertUnit(2, 1, 2000000000))); in TEST()