Lines Matching refs:StartsWith

710 TEST(StringUtilTest, StartsWith) {  in TEST()  argument
711 EXPECT_TRUE(StartsWith("javascript:url", "javascript", in TEST()
713 EXPECT_FALSE(StartsWith("JavaScript:url", "javascript", in TEST()
715 EXPECT_TRUE(StartsWith("javascript:url", "javascript", in TEST()
717 EXPECT_TRUE(StartsWith("JavaScript:url", "javascript", in TEST()
719 EXPECT_FALSE(StartsWith("java", "javascript", base::CompareCase::SENSITIVE)); in TEST()
720 EXPECT_FALSE(StartsWith("java", "javascript", in TEST()
722 EXPECT_FALSE(StartsWith(std::string(), "javascript", in TEST()
724 EXPECT_FALSE(StartsWith(std::string(), "javascript", in TEST()
726 EXPECT_TRUE(StartsWith("java", std::string(), in TEST()
728 EXPECT_TRUE(StartsWith("java", std::string(), base::CompareCase::SENSITIVE)); in TEST()
730 EXPECT_TRUE(StartsWith(ASCIIToUTF16("javascript:url"), in TEST()
733 EXPECT_FALSE(StartsWith(ASCIIToUTF16("JavaScript:url"), in TEST()
736 EXPECT_TRUE(StartsWith(ASCIIToUTF16("javascript:url"), in TEST()
739 EXPECT_TRUE(StartsWith(ASCIIToUTF16("JavaScript:url"), in TEST()
742 EXPECT_FALSE(StartsWith(ASCIIToUTF16("java"), ASCIIToUTF16("javascript"), in TEST()
744 EXPECT_FALSE(StartsWith(ASCIIToUTF16("java"), ASCIIToUTF16("javascript"), in TEST()
746 EXPECT_FALSE(StartsWith(string16(), ASCIIToUTF16("javascript"), in TEST()
748 EXPECT_FALSE(StartsWith(string16(), ASCIIToUTF16("javascript"), in TEST()
750 EXPECT_TRUE(StartsWith(ASCIIToUTF16("java"), string16(), in TEST()
752 EXPECT_TRUE(StartsWith(ASCIIToUTF16("java"), string16(), in TEST()