Home | History | Annotate | Download | only in base

Lines Matching refs:EndsWith

824 TEST(StringUtilTest, EndsWith) {
825 EXPECT_TRUE(EndsWith(L"Foo.plugin", L".plugin", true));
826 EXPECT_FALSE(EndsWith(L"Foo.Plugin", L".plugin", true));
827 EXPECT_TRUE(EndsWith(L"Foo.plugin", L".plugin", false));
828 EXPECT_TRUE(EndsWith(L"Foo.Plugin", L".plugin", false));
829 EXPECT_FALSE(EndsWith(L".plug", L".plugin", true));
830 EXPECT_FALSE(EndsWith(L".plug", L".plugin", false));
831 EXPECT_FALSE(EndsWith(L"Foo.plugin Bar", L".plugin", true));
832 EXPECT_FALSE(EndsWith(L"Foo.plugin Bar", L".plugin", false));
833 EXPECT_FALSE(EndsWith(L"", L".plugin", false));
834 EXPECT_FALSE(EndsWith(L"", L".plugin", true));
835 EXPECT_TRUE(EndsWith(L"Foo.plugin", L"", false));
836 EXPECT_TRUE(EndsWith(L"Foo.plugin", L"", true));
837 EXPECT_TRUE(EndsWith(L".plugin", L".plugin", false));
838 EXPECT_TRUE(EndsWith(L".plugin", L".plugin", true));
839 EXPECT_TRUE(EndsWith(L"", L"", false));
840 EXPECT_TRUE(EndsWith(L"", L"", true));