Lines Matching refs:EndsWith
819 TEST(StringUtilTest, EndsWith) {
820 EXPECT_TRUE(EndsWith(ASCIIToUTF16("Foo.plugin"),
822 EXPECT_FALSE(EndsWith(ASCIIToUTF16("Foo.Plugin"),
824 EXPECT_TRUE(EndsWith(ASCIIToUTF16("Foo.plugin"),
826 EXPECT_TRUE(EndsWith(ASCIIToUTF16("Foo.Plugin"),
828 EXPECT_FALSE(EndsWith(ASCIIToUTF16(".plug"), ASCIIToUTF16(".plugin"), true));
829 EXPECT_FALSE(EndsWith(ASCIIToUTF16(".plug"), ASCIIToUTF16(".plugin"), false));
830 EXPECT_FALSE(EndsWith(ASCIIToUTF16("Foo.plugin Bar"),
832 EXPECT_FALSE(EndsWith(ASCIIToUTF16("Foo.plugin Bar"),
834 EXPECT_FALSE(EndsWith(string16(), ASCIIToUTF16(".plugin"), false));
835 EXPECT_FALSE(EndsWith(string16(), ASCIIToUTF16(".plugin"), true));
836 EXPECT_TRUE(EndsWith(ASCIIToUTF16("Foo.plugin"), string16(), false));
837 EXPECT_TRUE(EndsWith(ASCIIToUTF16("Foo.plugin"), string16(), true));
838 EXPECT_TRUE(EndsWith(ASCIIToUTF16(".plugin"),
840 EXPECT_TRUE(EndsWith(ASCIIToUTF16(".plugin"), ASCIIToUTF16(".plugin"), true));
841 EXPECT_TRUE(EndsWith(string16(), string16(), false));
842 EXPECT_TRUE(EndsWith(string16(), string16(), true));