Searched refs:FilePath (Results 1 - 8 of 8) sorted by relevance

/gem5/ext/googletest/googletest/include/gtest/internal/
H A Dgtest-filepath.h48 // FilePath - a class for file and directory pathname manipulation which
53 // A FilePath with a value ending in a path separator ("like/this/") represents
59 class GTEST_API_ FilePath { class in namespace:testing::internal
61 FilePath() : pathname_("") { } function in class:testing::internal::FilePath
62 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) { } function in class:testing::internal::FilePath
64 explicit FilePath(const std::string& pathname) : pathname_(pathname) { function in class:testing::internal::FilePath
68 FilePath& operator=(const FilePath& rhs) {
73 void Set(const FilePath
[all...]
/gem5/ext/googletest/googletest/test/
H A Dgtest-filepath_test.cc76 FilePath filepath(path);
87 const FilePath original_dir = FilePath::GetCurrentDir();
91 const FilePath cwd = FilePath::GetCurrentDir();
111 EXPECT_TRUE(FilePath("").IsEmpty());
115 EXPECT_FALSE(FilePath("a").IsEmpty());
116 EXPECT_FALSE(FilePath(".").IsEmpty());
117 EXPECT_FALSE(FilePath("a/b").IsEmpty());
118 EXPECT_FALSE(FilePath("
[all...]
H A Dgtest-options_test.cc63 FilePath GetAbsolutePathOf(const FilePath& relative_path) {
64 return FilePath::ConcatPaths(FilePath::GetCurrentDir(), relative_path);
81 EXPECT_EQ(GetAbsolutePathOf(FilePath("test_detail.xml")).string(),
87 EXPECT_EQ(GetAbsolutePathOf(FilePath("filename.abc")).string(),
95 FilePath(std::string("path") + GTEST_PATH_SEP_ +
130 original_working_dir_ = FilePath::GetCurrentDir();
134 FilePath::GetCurrentDir().string());
141 FilePath original_working_dir
[all...]
H A Dgtest-death-test_test.cc74 using testing::internal::FilePath;
133 TestForDeathTest() : original_dir_(FilePath::GetCurrentDir()) {}
150 const FilePath original_dir_;
H A Dgtest_unittest.cc6413 testdata_path_.Set(internal::FilePath(
6425 internal::FilePath CreateFlagfile(const char* contents) {
6426 internal::FilePath file_path(internal::FilePath::GenerateUniqueFileName(
6427 testdata_path_, internal::FilePath("unique"), "txt"));
6435 internal::FilePath testdata_path_;
6440 internal::FilePath flagfile_path(CreateFlagfile(""));
6460 internal::FilePath flagfile_path(CreateFlagfile(
6481 internal::FilePath flagfile_path(CreateFlagfile(
/gem5/ext/googletest/googletest/src/
H A Dgtest-filepath.cc99 FilePath FilePath::GetCurrentDir() {
103 return FilePath(kCurrentDirectoryString);
106 return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd);
114 return FilePath(result == NULL ? kCurrentDirectoryString : cwd);
116 return FilePath(result == NULL ? "" : cwd);
120 // Returns a copy of the FilePath with the case-insensitive extension removed.
121 // Example: FilePath("dir/file.exe").RemoveExtension("EXE") returns
122 // FilePath("dir/file"). If a case-insensitive extension is not
123 // found, returns a copy of the original FilePath
[all...]
H A Dgtest-internal-inl.h415 GTEST_API_ FilePath GetCurrentExecutableName();
656 original_working_dir_.Set(FilePath::GetCurrentDir());
817 internal::FilePath original_working_dir_;
H A Dgtest.cc399 FilePath GetCurrentExecutableName() {
400 FilePath result;
403 result.Set(FilePath(GetArgvs()[0]).RemoveExtension("exe"));
405 result.Set(FilePath(GetArgvs()[0]));
433 return internal::FilePath::ConcatPaths(
434 internal::FilePath(
436 internal::FilePath(kDefaultOutputFile)).string();
438 internal::FilePath output_name(colon + 1);
444 output_name = internal::FilePath::ConcatPaths(
445 internal::FilePath(UnitTes
[all...]

Completed in 56 milliseconds