Home | History | Annotate | Download | only in test

Lines Matching refs:RemoveDirectoryName

122 // RemoveDirectoryName "" -> ""
124 EXPECT_STREQ("", FilePath("").RemoveDirectoryName().c_str());
127 // RemoveDirectoryName "afile" -> "afile"
130 FilePath("afile").RemoveDirectoryName().c_str());
133 // RemoveDirectoryName "/afile" -> "afile"
136 FilePath(GTEST_PATH_SEP_ "afile").RemoveDirectoryName().c_str());
139 // RemoveDirectoryName "adir/" -> ""
142 FilePath("adir" GTEST_PATH_SEP_).RemoveDirectoryName().c_str());
145 // RemoveDirectoryName "adir/afile" -> "afile"
148 FilePath("adir" GTEST_PATH_SEP_ "afile").RemoveDirectoryName().c_str());
151 // RemoveDirectoryName "adir/subdir/afile" -> "afile"
155 .RemoveDirectoryName().c_str());
160 // Tests that RemoveDirectoryName() works with the alternate separator
163 // RemoveDirectoryName("/afile") -> "afile"
166 FilePath("/afile").RemoveDirectoryName().c_str());
169 // RemoveDirectoryName("adir/") -> ""
172 FilePath("adir/").RemoveDirectoryName().c_str());
175 // RemoveDirectoryName("adir/afile") -> "afile"
178 FilePath("adir/afile").RemoveDirectoryName().c_str());
181 // RemoveDirectoryName("adir/subdir/afile") -> "afile"
184 FilePath("adir/subdir/afile").RemoveDirectoryName().c_str());