CHROMA
|
#include <gtest.h>
Public Member Functions | |
FilePath () | |
FilePath (const FilePath &rhs) | |
FilePath (const std::string &pathname) | |
FilePath & | operator= (const FilePath &rhs) |
void | Set (const FilePath &rhs) |
const std::string & | string () const |
const char * | c_str () const |
bool | IsEmpty () const |
FilePath | RemoveTrailingPathSeparator () const |
FilePath | RemoveDirectoryName () const |
FilePath | RemoveFileName () const |
FilePath | RemoveExtension (const char *extension) const |
bool | CreateDirectoriesRecursively () const |
bool | CreateFolder () const |
bool | FileOrDirectoryExists () const |
bool | DirectoryExists () const |
bool | IsDirectory () const |
bool | IsRootDirectory () const |
bool | IsAbsolutePath () const |
Static Public Member Functions | |
static FilePath | GetCurrentDir () |
static FilePath | MakeFileName (const FilePath &directory, const FilePath &base_name, int number, const char *extension) |
static FilePath | ConcatPaths (const FilePath &directory, const FilePath &relative_path) |
static FilePath | GenerateUniqueFileName (const FilePath &directory, const FilePath &base_name, const char *extension) |
Private Member Functions | |
void | Normalize () |
const char * | FindLastPathSeparator () const |
Private Attributes | |
std::string | pathname_ |
|
inline |
Definition at line 3548 of file gtest.h.
Referenced by ConcatPaths(), GetCurrentDir(), MakeFileName(), RemoveDirectoryName(), RemoveExtension(), RemoveFileName(), and RemoveTrailingPathSeparator().
|
inline |
|
inlineexplicit |
|
inline |
Definition at line 3565 of file gtest.h.
Referenced by CreateFolder(), DirectoryExists(), FindLastPathSeparator(), testing::UnitTest::original_working_dir(), and RemoveFileName().
|
static |
Definition at line 8028 of file gtest-all.cc.
References FilePath(), IsEmpty(), testing::internal::kPathSeparator, RemoveTrailingPathSeparator(), and string().
Referenced by testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile(), and MakeFileName().
bool testing::internal::FilePath::CreateDirectoriesRecursively | ( | ) | const |
Definition at line 8137 of file gtest-all.cc.
References CreateDirectoriesRecursively(), CreateFolder(), IsDirectory(), pathname_, RemoveFileName(), and RemoveTrailingPathSeparator().
Referenced by CreateDirectoriesRecursively(), and testing::internal::XmlUnitTestResultPrinter::OnTestIterationEnd().
bool testing::internal::FilePath::CreateFolder | ( | ) | const |
Definition at line 8154 of file gtest-all.cc.
References c_str(), DirectoryExists(), pathname_, and RemoveTrailingPathSeparator().
Referenced by CreateDirectoriesRecursively().
bool testing::internal::FilePath::DirectoryExists | ( | ) | const |
Definition at line 8052 of file gtest-all.cc.
References c_str(), testing::internal::posix::IsDir(), IsRootDirectory(), RemoveTrailingPathSeparator(), and testing::internal::posix::Stat().
Referenced by CreateFolder().
bool testing::internal::FilePath::FileOrDirectoryExists | ( | ) | const |
Definition at line 8038 of file gtest-all.cc.
References pathname_, and testing::internal::posix::Stat().
Referenced by GenerateUniqueFileName().
|
private |
Definition at line 7965 of file gtest-all.cc.
References c_str(), and testing::internal::kPathSeparator.
Referenced by RemoveDirectoryName(), and RemoveFileName().
|
static |
Definition at line 8115 of file gtest-all.cc.
References FileOrDirectoryExists(), MakeFileName(), and Set().
Referenced by testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile().
|
static |
Definition at line 7935 of file gtest-all.cc.
References FilePath(), GTEST_PATH_MAX_, and testing::internal::kCurrentDirectoryString.
Referenced by testing::internal::UnitTestImpl::AddTestInfo().
bool testing::internal::FilePath::IsAbsolutePath | ( | ) | const |
Definition at line 8094 of file gtest-all.cc.
References testing::internal::IsPathSeparator(), Chroma::AsqtadFermActEnv::name, and pathname_.
Referenced by testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile(), and IsRootDirectory().
bool testing::internal::FilePath::IsDirectory | ( | ) | const |
Definition at line 8129 of file gtest-all.cc.
References testing::internal::IsPathSeparator(), and pathname_.
Referenced by CreateDirectoriesRecursively(), testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile(), and RemoveTrailingPathSeparator().
|
inline |
Definition at line 3598 of file gtest.h.
Referenced by ConcatPaths().
bool testing::internal::FilePath::IsRootDirectory | ( | ) | const |
Definition at line 8082 of file gtest-all.cc.
References IsAbsolutePath(), testing::internal::IsPathSeparator(), and pathname_.
Referenced by DirectoryExists().
|
static |
Definition at line 8012 of file gtest-all.cc.
References ConcatPaths(), FilePath(), testing::internal::StreamableToString(), and string().
Referenced by GenerateUniqueFileName().
|
private |
Definition at line 8185 of file gtest-all.cc.
References testing::internal::IsPathSeparator(), testing::internal::kPathSeparator, and pathname_.
FilePath testing::internal::FilePath::RemoveDirectoryName | ( | ) | const |
Definition at line 7984 of file gtest-all.cc.
References FilePath(), and FindLastPathSeparator().
Referenced by testing::internal::GetCurrentExecutableName().
FilePath testing::internal::FilePath::RemoveExtension | ( | const char * | extension | ) | const |
Definition at line 7953 of file gtest-all.cc.
References testing::internal::String::EndsWithCaseInsensitive(), FilePath(), and pathname_.
FilePath testing::internal::FilePath::RemoveFileName | ( | ) | const |
Definition at line 7995 of file gtest-all.cc.
References c_str(), FilePath(), FindLastPathSeparator(), and testing::internal::kCurrentDirectoryString.
Referenced by CreateDirectoriesRecursively(), and testing::internal::XmlUnitTestResultPrinter::OnTestIterationEnd().
FilePath testing::internal::FilePath::RemoveTrailingPathSeparator | ( | ) | const |
Definition at line 8175 of file gtest-all.cc.
References FilePath(), IsDirectory(), and pathname_.
Referenced by ConcatPaths(), CreateDirectoriesRecursively(), CreateFolder(), and DirectoryExists().
|
inline |
Definition at line 3560 of file gtest.h.
References pathname_.
Referenced by GenerateUniqueFileName(), and testing::internal::GetCurrentExecutableName().
|
inline |
Definition at line 3564 of file gtest.h.
Referenced by ConcatPaths(), testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile(), and MakeFileName().
|
private |
Definition at line 3687 of file gtest.h.
Referenced by CreateDirectoriesRecursively(), CreateFolder(), FileOrDirectoryExists(), IsAbsolutePath(), IsDirectory(), IsRootDirectory(), Normalize(), RemoveExtension(), RemoveTrailingPathSeparator(), and Set().