Lines Matching refs:ParseInt
26 ASSERT_FALSE(android::base::ParseInt("x", &i)); in TEST()
29 ASSERT_FALSE(android::base::ParseInt("123x", &i)); in TEST()
32 ASSERT_TRUE(android::base::ParseInt("123", &i)); in TEST()
36 EXPECT_TRUE(android::base::ParseInt(" 123", &i)); in TEST()
38 ASSERT_TRUE(android::base::ParseInt("-123", &i)); in TEST()
41 EXPECT_TRUE(android::base::ParseInt(" -123", &i)); in TEST()
45 ASSERT_TRUE(android::base::ParseInt("1234", &s)); in TEST()
48 ASSERT_TRUE(android::base::ParseInt("12", &i, 0, 15)); in TEST()
51 ASSERT_FALSE(android::base::ParseInt("-12", &i, 0, 15)); in TEST()
54 ASSERT_FALSE(android::base::ParseInt("16", &i, 0, 15)); in TEST()
58 ASSERT_FALSE(android::base::ParseInt<int>("x", nullptr)); in TEST()
61 ASSERT_FALSE(android::base::ParseInt<int>("123x", nullptr)); in TEST()
63 ASSERT_TRUE(android::base::ParseInt<int>("1234", nullptr)); in TEST()
120 ASSERT_TRUE(android::base::ParseInt("0123", &i)); in TEST()
130 ASSERT_TRUE(android::base::ParseInt("0x123", &i)); in TEST()
133 EXPECT_TRUE(android::base::ParseInt(" 0x123", &i)); in TEST()
146 ASSERT_TRUE(android::base::ParseInt(std::string("123"), &i)); in TEST()
156 ASSERT_FALSE(android::base::ParseInt("456x", &i)); in TEST()