40 #ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_ 41 #define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_ 64 explicit FilePath(
const char* pathname) : pathname_(pathname) {
82 const char*
c_str()
const {
return pathname_.c_str(); }
94 const char* extension);
112 const char* extension);
115 bool IsEmpty()
const {
return c_str() == NULL || *c_str() ==
'\0'; }
120 FilePath RemoveTrailingPathSeparator()
const;
128 FilePath RemoveDirectoryName()
const;
142 FilePath RemoveExtension(
const char* extension)
const;
148 bool CreateDirectoriesRecursively()
const;
154 bool CreateFolder()
const;
158 bool FileOrDirectoryExists()
const;
162 bool DirectoryExists()
const;
167 bool IsDirectory()
const;
171 bool IsRootDirectory()
const;
174 bool IsAbsolutePath()
const;
202 const char* FindLastPathSeparator()
const;
210 #endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_ void Set(const FilePath &rhs)
Definition: gtest-filepath.h:77
Definition: gmock-actions.h:49
FilePath()
Definition: gtest-filepath.h:61
FilePath(const String &pathname)
Definition: gtest-filepath.h:68
Definition: gtest-filepath.h:59
FilePath & operator=(const FilePath &rhs)
Definition: gtest-filepath.h:72
FilePath(const char *pathname)
Definition: gtest-filepath.h:64
String ToString() const
Definition: gtest-filepath.h:81
#define GTEST_API_
Definition: gtest-port.h:662
const char * c_str() const
Definition: gtest-filepath.h:82
Definition: gtest-string.h:81
bool IsEmpty() const
Definition: gtest-filepath.h:115
FilePath(const FilePath &rhs)
Definition: gtest-filepath.h:62
String pathname_
Definition: gtest-filepath.h:204