Lines Matching refs:IsRootDirectory
679 TEST(FilePathTest, IsRootDirectory) {
681 EXPECT_TRUE(FilePath("a:\\").IsRootDirectory());
682 EXPECT_TRUE(FilePath("Z:/").IsRootDirectory());
683 EXPECT_TRUE(FilePath("e://").IsRootDirectory());
684 EXPECT_FALSE(FilePath("").IsRootDirectory());
685 EXPECT_FALSE(FilePath("b:").IsRootDirectory());
686 EXPECT_FALSE(FilePath("b:a").IsRootDirectory());
687 EXPECT_FALSE(FilePath("8:/").IsRootDirectory());
688 EXPECT_FALSE(FilePath("c|/").IsRootDirectory());
690 EXPECT_TRUE(FilePath("/").IsRootDirectory());
691 EXPECT_TRUE(FilePath("//").IsRootDirectory());
692 EXPECT_FALSE(FilePath("").IsRootDirectory());
693 EXPECT_FALSE(FilePath("\\").IsRootDirectory());
694 EXPECT_FALSE(FilePath("/x").IsRootDirectory());