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