Home | History | Annotate | Download | only in test

Lines Matching refs:IsRootDirectory

675 TEST(FilePathTest, IsRootDirectory) {
677 EXPECT_TRUE(FilePath("a:\\").IsRootDirectory());
678 EXPECT_TRUE(FilePath("Z:/").IsRootDirectory());
679 EXPECT_TRUE(FilePath("e://").IsRootDirectory());
680 EXPECT_FALSE(FilePath("").IsRootDirectory());
681 EXPECT_FALSE(FilePath("b:").IsRootDirectory());
682 EXPECT_FALSE(FilePath("b:a").IsRootDirectory());
683 EXPECT_FALSE(FilePath("8:/").IsRootDirectory());
684 EXPECT_FALSE(FilePath("c|/").IsRootDirectory());
686 EXPECT_TRUE(FilePath("/").IsRootDirectory());
687 EXPECT_TRUE(FilePath("//").IsRootDirectory());
688 EXPECT_FALSE(FilePath("").IsRootDirectory());
689 EXPECT_FALSE(FilePath("\\").IsRootDirectory());
690 EXPECT_FALSE(FilePath("/x").IsRootDirectory());