40 #ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_ 41 #define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_ 74 pathname_ = rhs.pathname_;
78 const char*
c_str()
const {
return pathname_.c_str(); }
90 const char* extension);
108 const char* extension);
111 bool IsEmpty()
const {
return pathname_.empty(); }
116 FilePath RemoveTrailingPathSeparator()
const;
124 FilePath RemoveDirectoryName()
const;
138 FilePath RemoveExtension(
const char* extension)
const;
144 bool CreateDirectoriesRecursively()
const;
150 bool CreateFolder()
const;
154 bool FileOrDirectoryExists()
const;
158 bool DirectoryExists()
const;
163 bool IsDirectory()
const;
167 bool IsRootDirectory()
const;
170 bool IsAbsolutePath()
const;
198 const char* FindLastPathSeparator()
const;
206 #endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_ const std::string & string() const
Definition: gtest-filepath.h:77
void Set(const FilePath &rhs)
Definition: gtest-filepath.h:73
Definition: gmock-actions.h:53
FilePath()
Definition: gtest-filepath.h:61
Definition: gtest-filepath.h:59
FilePath & operator=(const FilePath &rhs)
Definition: gtest-filepath.h:68
::std::string string
Definition: gtest-port.h:1097
#define GTEST_API_
Definition: gtest-port.h:934
FilePath(const std::string &pathname)
Definition: gtest-filepath.h:64
bool IsEmpty() const
Definition: gtest-filepath.h:111
const char * c_str() const
Definition: gtest-filepath.h:78
FilePath(const FilePath &rhs)
Definition: gtest-filepath.h:62