Lines Matching refs:ContainsOnlyChars
1276 TEST(StringUtilTest, ContainsOnlyChars) { in TEST() argument
1279 EXPECT_TRUE(ContainsOnlyChars(std::string(), std::string())); in TEST()
1280 EXPECT_FALSE(ContainsOnlyChars("Hello", std::string())); in TEST()
1282 EXPECT_TRUE(ContainsOnlyChars(std::string(), "1234")); in TEST()
1283 EXPECT_TRUE(ContainsOnlyChars("1", "1234")); in TEST()
1284 EXPECT_TRUE(ContainsOnlyChars("1", "4321")); in TEST()
1285 EXPECT_TRUE(ContainsOnlyChars("123", "4321")); in TEST()
1286 EXPECT_FALSE(ContainsOnlyChars("123a", "4321")); in TEST()
1288 EXPECT_TRUE(ContainsOnlyChars(std::string(), kWhitespaceASCII)); in TEST()
1289 EXPECT_TRUE(ContainsOnlyChars(" ", kWhitespaceASCII)); in TEST()
1290 EXPECT_TRUE(ContainsOnlyChars("\t", kWhitespaceASCII)); in TEST()
1291 EXPECT_TRUE(ContainsOnlyChars("\t \r \n ", kWhitespaceASCII)); in TEST()
1292 EXPECT_FALSE(ContainsOnlyChars("a", kWhitespaceASCII)); in TEST()
1293 EXPECT_FALSE(ContainsOnlyChars("\thello\r \n ", kWhitespaceASCII)); in TEST()
1295 EXPECT_TRUE(ContainsOnlyChars(string16(), kWhitespaceUTF16)); in TEST()
1296 EXPECT_TRUE(ContainsOnlyChars(ASCIIToUTF16(" "), kWhitespaceUTF16)); in TEST()
1297 EXPECT_TRUE(ContainsOnlyChars(ASCIIToUTF16("\t"), kWhitespaceUTF16)); in TEST()
1298 EXPECT_TRUE(ContainsOnlyChars(ASCIIToUTF16("\t \r \n "), kWhitespaceUTF16)); in TEST()
1299 EXPECT_FALSE(ContainsOnlyChars(ASCIIToUTF16("a"), kWhitespaceUTF16)); in TEST()
1300 EXPECT_FALSE(ContainsOnlyChars(ASCIIToUTF16("\thello\r \n "), in TEST()