Lines Matching refs:c_str
78 filepath.RemoveTrailingPathSeparator().c_str()); in _rmdir()
92 posix::ChDir(original_dir.c_str());
96 const char* const cwd_without_drive = strchr(cwd.c_str(), ':');
100 EXPECT_STREQ(GTEST_PATH_SEP_, cwd.c_str());
120 EXPECT_STREQ("", FilePath("").RemoveDirectoryName().c_str()); in TEST()
126 FilePath("afile").RemoveDirectoryName().c_str()); in TEST()
132 FilePath(GTEST_PATH_SEP_ "afile").RemoveDirectoryName().c_str()); in TEST()
138 FilePath("adir" GTEST_PATH_SEP_).RemoveDirectoryName().c_str()); in TEST()
144 FilePath("adir" GTEST_PATH_SEP_ "afile").RemoveDirectoryName().c_str()); in TEST()
151 .RemoveDirectoryName().c_str()); in TEST()
162 FilePath("/afile").RemoveDirectoryName().c_str()); in TEST()
168 FilePath("adir/").RemoveDirectoryName().c_str()); in TEST()
174 FilePath("adir/afile").RemoveDirectoryName().c_str()); in TEST()
180 FilePath("adir/subdir/afile").RemoveDirectoryName().c_str()); in TEST()
190 FilePath("").RemoveFileName().c_str()); in TEST()
193 FilePath("").RemoveFileName().c_str()); in TEST()
200 FilePath("adir" GTEST_PATH_SEP_).RemoveFileName().c_str()); in TEST()
207 .RemoveFileName().c_str()); in TEST()
214 .RemoveFileName().c_str()); in TEST()
220 FilePath(GTEST_PATH_SEP_ "afile").RemoveFileName().c_str()); in TEST()
231 FilePath("adir/").RemoveFileName().c_str()); in TEST()
237 FilePath("adir/afile").RemoveFileName().c_str()); in TEST()
243 FilePath("adir/subdir/afile").RemoveFileName().c_str()); in TEST()
249 FilePath("/afile").RemoveFileName().c_str()); in TEST()
257 EXPECT_STREQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.c_str()); in TEST()
263 EXPECT_STREQ("foo" GTEST_PATH_SEP_ "bar_12.xml", actual.c_str()); in TEST()
269 EXPECT_STREQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.c_str()); in TEST()
275 EXPECT_STREQ("foo" GTEST_PATH_SEP_ "bar_12.xml", actual.c_str()); in TEST()
281 EXPECT_STREQ("bar.xml", actual.c_str()); in TEST()
287 EXPECT_STREQ("bar_14.xml", actual.c_str()); in TEST()
293 EXPECT_STREQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.c_str()); in TEST()
299 EXPECT_STREQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.c_str()); in TEST()
305 EXPECT_STREQ("bar.xml", actual.c_str()); in TEST()
311 EXPECT_STREQ("foo" GTEST_PATH_SEP_, actual.c_str()); in TEST()
317 EXPECT_STREQ("", actual.c_str()); in TEST()
324 actual.c_str()); in TEST()
332 actual.c_str()); in TEST()
338 EXPECT_STREQ("foo" GTEST_PATH_SEP_ "bar" GTEST_PATH_SEP_, actual.c_str()); in TEST()
344 FilePath("").RemoveTrailingPathSeparator().c_str()); in TEST()
350 FilePath("foo").RemoveTrailingPathSeparator().c_str()); in TEST()
357 FilePath("foo" GTEST_PATH_SEP_).RemoveTrailingPathSeparator().c_str()); in TEST()
360 FilePath("foo/").RemoveTrailingPathSeparator().c_str()); in TEST()
368 .RemoveTrailingPathSeparator().c_str()); in TEST()
375 .RemoveTrailingPathSeparator().c_str()); in TEST()
429 EXPECT_STREQ("", FilePath(NULL).c_str()); in TEST()
430 EXPECT_STREQ("", FilePath(String(NULL)).c_str()); in TEST()
436 FilePath("foo" GTEST_PATH_SEP_ "bar").c_str()); in TEST()
438 FilePath("foo" GTEST_PATH_SEP_ GTEST_PATH_SEP_ "bar").c_str()); in TEST()
441 GTEST_PATH_SEP_ "bar").c_str()); in TEST()
447 FilePath(GTEST_PATH_SEP_ "bar").c_str()); in TEST()
449 FilePath(GTEST_PATH_SEP_ GTEST_PATH_SEP_ "bar").c_str()); in TEST()
451 FilePath(GTEST_PATH_SEP_ GTEST_PATH_SEP_ GTEST_PATH_SEP_ "bar").c_str()); in TEST()
457 FilePath("foo" GTEST_PATH_SEP_).c_str()); in TEST()
459 FilePath("foo" GTEST_PATH_SEP_ GTEST_PATH_SEP_).c_str()); in TEST()
461 FilePath("foo" GTEST_PATH_SEP_ GTEST_PATH_SEP_ GTEST_PATH_SEP_).c_str()); in TEST()
471 FilePath("foo/").c_str()); in TEST()
473 FilePath("foo" GTEST_PATH_SEP_ "/").c_str()); in TEST()
475 FilePath("foo//" GTEST_PATH_SEP_).c_str()); in TEST()
484 EXPECT_STREQ("", non_default_path.c_str()); in TEST()
485 EXPECT_STREQ("", default_path.c_str()); // RHS var is unchanged. in TEST()
492 EXPECT_STREQ("path", default_path.c_str()); in TEST()
493 EXPECT_STREQ("path", non_default_path.c_str()); // RHS var is unchanged. in TEST()
500 EXPECT_STREQ("const_path", non_default_path.c_str()); in TEST()
507 TempDir().c_str(), GetCurrentExecutableName().c_str(), in SetUp()
516 remove(testdata_file_.c_str()); in SetUp()
517 remove(unique_file0_.c_str()); in SetUp()
518 remove(unique_file1_.c_str()); in SetUp()
519 posix::RmDir(testdata_path_.c_str()); in SetUp()
523 remove(testdata_file_.c_str()); in TearDown()
524 remove(unique_file0_.c_str()); in TearDown()
525 remove(unique_file1_.c_str()); in TearDown()
526 posix::RmDir(testdata_path_.c_str()); in TearDown()
561 EXPECT_FALSE(testdata_path_.DirectoryExists()) << testdata_path_.c_str(); in TEST_F()
567 EXPECT_FALSE(testdata_path_.DirectoryExists()) << testdata_path_.c_str(); in TEST_F()
576 EXPECT_STREQ(unique_file0_.c_str(), file_path.c_str()); in TEST_F()
581 CreateTextFile(file_path.c_str()); in TEST_F()
586 EXPECT_STREQ(unique_file1_.c_str(), file_path2.c_str()); in TEST_F()
588 CreateTextFile(file_path2.c_str()); in TEST_F()
594 CreateTextFile(testdata_file_.c_str()); in TEST_F()
607 EXPECT_STREQ("", fp.c_str()); in TEST()
612 EXPECT_STREQ("spicy", fp.c_str()); in TEST()
615 EXPECT_STREQ("spicy", fp_copy.c_str()); in TEST()
620 EXPECT_STREQ("cider", fp.c_str()); in TEST()
627 EXPECT_STREQ("apple", mac.c_str()); in TEST()
628 EXPECT_STREQ("apple", apple.c_str()); in TEST()
634 EXPECT_STREQ("drink", str.c_str()); in TEST()
638 EXPECT_STREQ("app", FilePath("app.exe").RemoveExtension("exe").c_str()); in TEST()
639 EXPECT_STREQ("APP", FilePath("APP.EXE").RemoveExtension("exe").c_str()); in TEST()
643 EXPECT_STREQ("app", FilePath("app").RemoveExtension("exe").c_str()); in TEST()