Lines Matching refs:ParseByteCount
164 TEST(parseint, ParseByteCount) { in TEST() argument
166 ASSERT_TRUE(android::base::ParseByteCount("123b", &i)); in TEST()
169 ASSERT_TRUE(android::base::ParseByteCount("8k", &i)); in TEST()
172 ASSERT_TRUE(android::base::ParseByteCount("8M", &i)); in TEST()
175 ASSERT_TRUE(android::base::ParseByteCount("6g", &i)); in TEST()
178 ASSERT_TRUE(android::base::ParseByteCount("1T", &i)); in TEST()
181 ASSERT_TRUE(android::base::ParseByteCount("2p", &i)); in TEST()
184 ASSERT_TRUE(android::base::ParseByteCount("4e", &i)); in TEST()
190 ASSERT_FALSE(android::base::ParseByteCount("1x", &u)); in TEST()
195 ASSERT_FALSE(android::base::ParseByteCount("4294967295E", &u64)); in TEST()
198 ASSERT_TRUE(android::base::ParseByteCount("63k", &u16)); in TEST()
200 ASSERT_TRUE(android::base::ParseByteCount("65535b", &u16)); in TEST()
202 ASSERT_FALSE(android::base::ParseByteCount("65k", &u16)); in TEST()