Lines Matching refs:EndsWith
756 TEST(StringUtilTest, EndsWith) { in TEST() argument
757 EXPECT_TRUE(EndsWith(ASCIIToUTF16("Foo.plugin"), ASCIIToUTF16(".plugin"), in TEST()
759 EXPECT_FALSE(EndsWith(ASCIIToUTF16("Foo.Plugin"), ASCIIToUTF16(".plugin"), in TEST()
761 EXPECT_TRUE(EndsWith(ASCIIToUTF16("Foo.plugin"), ASCIIToUTF16(".plugin"), in TEST()
763 EXPECT_TRUE(EndsWith(ASCIIToUTF16("Foo.Plugin"), ASCIIToUTF16(".plugin"), in TEST()
765 EXPECT_FALSE(EndsWith(ASCIIToUTF16(".plug"), ASCIIToUTF16(".plugin"), in TEST()
767 EXPECT_FALSE(EndsWith(ASCIIToUTF16(".plug"), ASCIIToUTF16(".plugin"), in TEST()
769 EXPECT_FALSE(EndsWith(ASCIIToUTF16("Foo.plugin Bar"), ASCIIToUTF16(".plugin"), in TEST()
771 EXPECT_FALSE(EndsWith(ASCIIToUTF16("Foo.plugin Bar"), ASCIIToUTF16(".plugin"), in TEST()
773 EXPECT_FALSE(EndsWith(string16(), ASCIIToUTF16(".plugin"), in TEST()
775 EXPECT_FALSE(EndsWith(string16(), ASCIIToUTF16(".plugin"), in TEST()
777 EXPECT_TRUE(EndsWith(ASCIIToUTF16("Foo.plugin"), string16(), in TEST()
779 EXPECT_TRUE(EndsWith(ASCIIToUTF16("Foo.plugin"), string16(), in TEST()
781 EXPECT_TRUE(EndsWith(ASCIIToUTF16(".plugin"), ASCIIToUTF16(".plugin"), in TEST()
783 EXPECT_TRUE(EndsWith(ASCIIToUTF16(".plugin"), ASCIIToUTF16(".plugin"), in TEST()
786 EndsWith(string16(), string16(), base::CompareCase::INSENSITIVE_ASCII)); in TEST()
787 EXPECT_TRUE(EndsWith(string16(), string16(), base::CompareCase::SENSITIVE)); in TEST()