proxygen
testing::internal::FilePath Class Reference

#include <gtest-filepath.h>

Public Member Functions

 FilePath ()
 
 FilePath (const FilePath &rhs)
 
 FilePath (const std::string &pathname)
 
FilePathoperator= (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
 
 FilePath ()
 
 FilePath (const FilePath &rhs)
 
 FilePath (const std::string &pathname)
 
FilePathoperator= (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
 
 FilePath ()
 
 FilePath (const FilePath &rhs)
 
 FilePath (const std::string &pathname)
 
FilePathoperator= (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)
 
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)
 
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
 
void Normalize ()
 
const char * FindLastPathSeparator () const
 
void Normalize ()
 
const char * FindLastPathSeparator () const
 

Private Attributes

std::string pathname_
 

Detailed Description

Definition at line 59 of file gtest-filepath.h.

Constructor & Destructor Documentation

testing::internal::FilePath::FilePath ( const FilePath rhs)
inline

Definition at line 62 of file gtest-filepath.h.

62 : pathname_(rhs.pathname_) { }
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649
testing::internal::FilePath::FilePath ( const std::string pathname)
inlineexplicit

Definition at line 64 of file gtest-filepath.h.

64  : pathname_(pathname) {
65  Normalize();
66  }
testing::internal::FilePath::FilePath ( )
inline

Definition at line 61 of file gtest-filepath.h.

61 : pathname_("") { }
testing::internal::FilePath::FilePath ( const FilePath rhs)
inline

Definition at line 62 of file gtest-filepath.h.

62 : pathname_(rhs.pathname_) { }
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649
testing::internal::FilePath::FilePath ( const std::string pathname)
inlineexplicit

Definition at line 64 of file gtest-filepath.h.

64  : pathname_(pathname) {
65  Normalize();
66  }
testing::internal::FilePath::FilePath ( )
inline

Definition at line 61 of file gtest-filepath.h.

61 : pathname_("") { }
testing::internal::FilePath::FilePath ( const FilePath rhs)
inline

Definition at line 62 of file gtest-filepath.h.

62 : pathname_(rhs.pathname_) { }
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649
testing::internal::FilePath::FilePath ( const std::string pathname)
inlineexplicit

Definition at line 64 of file gtest-filepath.h.

64  : pathname_(pathname) {
65  Normalize();
66  }

Member Function Documentation

const char* testing::internal::FilePath::c_str ( ) const
inline
const char* testing::internal::FilePath::c_str ( ) const
inline

Definition at line 78 of file gtest-filepath.h.

References number.

78 { return pathname_.c_str(); }
const char* testing::internal::FilePath::c_str ( ) const
inline

Definition at line 78 of file gtest-filepath.h.

References number.

78 { return pathname_.c_str(); }
FilePath testing::internal::FilePath::ConcatPaths ( const FilePath directory,
const FilePath relative_path 
)
static

Definition at line 199 of file gtest-filepath.cc.

References FilePath(), IsEmpty(), RemoveTrailingPathSeparator(), and string().

Referenced by testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile(), testing::internal::IsPathSeparator(), MakeFileName(), and testing::internal::ShouldRunTestCase().

200  {
201  if (directory.IsEmpty())
202  return relative_path;
203  const FilePath dir(directory.RemoveTrailingPathSeparator());
204  return FilePath(dir.string() + kPathSeparator + relative_path.string());
205 }
const char kPathSeparator
static FilePath testing::internal::FilePath::ConcatPaths ( const FilePath directory,
const FilePath relative_path 
)
static
static FilePath testing::internal::FilePath::ConcatPaths ( const FilePath directory,
const FilePath relative_path 
)
static
bool testing::internal::FilePath::CreateDirectoriesRecursively ( ) const
bool testing::internal::FilePath::CreateDirectoriesRecursively ( ) const

Definition at line 308 of file gtest-filepath.cc.

References CreateDirectoriesRecursively(), CreateFolder(), DirectoryExists(), IsDirectory(), parent, pathname_, RemoveFileName(), and RemoveTrailingPathSeparator().

Referenced by CreateDirectoriesRecursively(), and testing::internal::IsPathSeparator().

308  {
309  if (!this->IsDirectory()) {
310  return false;
311  }
312 
313  if (pathname_.length() == 0 || this->DirectoryExists()) {
314  return true;
315  }
316 
318  return parent.CreateDirectoriesRecursively() && this->CreateFolder();
319 }
FilePath RemoveFileName() const
FilePath RemoveTrailingPathSeparator() const
folly::Function< void()> parent
Definition: AtFork.cpp:34
bool testing::internal::FilePath::CreateDirectoriesRecursively ( ) const
bool testing::internal::FilePath::CreateFolder ( ) const
bool testing::internal::FilePath::CreateFolder ( ) const
bool testing::internal::FilePath::CreateFolder ( ) const

Definition at line 325 of file gtest-filepath.cc.

References c_str(), DirectoryExists(), pathname_, and RemoveTrailingPathSeparator().

Referenced by CreateDirectoriesRecursively(), and testing::internal::IsPathSeparator().

325  {
326 #if GTEST_OS_WINDOWS_MOBILE
327  FilePath removed_sep(this->RemoveTrailingPathSeparator());
328  LPCWSTR unicode = String::AnsiToUtf16(removed_sep.c_str());
329  int result = CreateDirectory(unicode, NULL) ? 0 : -1;
330  delete [] unicode;
331 #elif GTEST_OS_WINDOWS
332  int result = _mkdir(pathname_.c_str());
333 #else
334  int result = mkdir(pathname_.c_str(), 0777);
335 #endif // GTEST_OS_WINDOWS_MOBILE
336 
337  if (result == -1) {
338  return this->DirectoryExists(); // An error is OK if the directory exists.
339  }
340  return true; // No error.
341 }
FilePath RemoveTrailingPathSeparator() const
bool testing::internal::FilePath::DirectoryExists ( ) const

Definition at line 223 of file gtest-filepath.cc.

References c_str(), testing::internal::posix::IsDir(), IsRootDirectory(), RemoveTrailingPathSeparator(), and testing::internal::posix::Stat().

Referenced by CreateDirectoriesRecursively(), CreateFolder(), and testing::internal::IsPathSeparator().

223  {
224  bool result = false;
225 #if GTEST_OS_WINDOWS
226  // Don't strip off trailing separator if path is a root directory on
227  // Windows (like "C:\\").
228  const FilePath& path(IsRootDirectory() ? *this :
230 #else
231  const FilePath& path(*this);
232 #endif
233 
234 #if GTEST_OS_WINDOWS_MOBILE
235  LPCWSTR unicode = String::AnsiToUtf16(path.c_str());
236  const DWORD attributes = GetFileAttributes(unicode);
237  delete [] unicode;
238  if ((attributes != kInvalidFileAttributes) &&
239  (attributes & FILE_ATTRIBUTE_DIRECTORY)) {
240  result = true;
241  }
242 #else
243  posix::StatStruct file_stat;
244  result = posix::Stat(path.c_str(), &file_stat) == 0 &&
245  posix::IsDir(file_stat);
246 #endif // GTEST_OS_WINDOWS_MOBILE
247 
248  return result;
249 }
int Stat(const char *path, StatStruct *buf)
Definition: gtest-port.h:2342
FilePath RemoveTrailingPathSeparator() const
bool IsDir(const StatStruct &st)
Definition: gtest-port.h:2348
bool testing::internal::FilePath::DirectoryExists ( ) const
bool testing::internal::FilePath::DirectoryExists ( ) const
bool testing::internal::FilePath::FileOrDirectoryExists ( ) const

Definition at line 209 of file gtest-filepath.cc.

References pathname_, and testing::internal::posix::Stat().

Referenced by GenerateUniqueFileName(), and testing::internal::IsPathSeparator().

209  {
210 #if GTEST_OS_WINDOWS_MOBILE
211  LPCWSTR unicode = String::AnsiToUtf16(pathname_.c_str());
212  const DWORD attributes = GetFileAttributes(unicode);
213  delete [] unicode;
214  return attributes != kInvalidFileAttributes;
215 #else
216  posix::StatStruct file_stat;
217  return posix::Stat(pathname_.c_str(), &file_stat) == 0;
218 #endif // GTEST_OS_WINDOWS_MOBILE
219 }
int Stat(const char *path, StatStruct *buf)
Definition: gtest-port.h:2342
bool testing::internal::FilePath::FileOrDirectoryExists ( ) const
bool testing::internal::FilePath::FileOrDirectoryExists ( ) const
const char* testing::internal::FilePath::FindLastPathSeparator ( ) const
private
const char * testing::internal::FilePath::FindLastPathSeparator ( ) const
private

Definition at line 136 of file gtest-filepath.cc.

References c_str().

Referenced by testing::internal::IsPathSeparator(), RemoveDirectoryName(), and RemoveFileName().

136  {
137  const char* const last_sep = strrchr(c_str(), kPathSeparator);
138 #if GTEST_HAS_ALT_PATH_SEP_
139  const char* const last_alt_sep = strrchr(c_str(), kAlternatePathSeparator);
140  // Comparing two pointers of which only one is NULL is undefined.
141  if (last_alt_sep != NULL &&
142  (last_sep == NULL || last_alt_sep > last_sep)) {
143  return last_alt_sep;
144  }
145 #endif
146  return last_sep;
147 }
const char * c_str() const
const char kPathSeparator
const char* testing::internal::FilePath::FindLastPathSeparator ( ) const
private
FilePath testing::internal::FilePath::GenerateUniqueFileName ( const FilePath directory,
const FilePath base_name,
const char *  extension 
)
static

Definition at line 286 of file gtest-filepath.cc.

References FileOrDirectoryExists(), MakeFileName(), number, and Set().

Referenced by testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile(), testing::internal::IsPathSeparator(), testing::internal::ShouldRunTestCase(), and testing::TEST_F().

288  {
289  FilePath full_pathname;
290  int number = 0;
291  do {
292  full_pathname.Set(MakeFileName(directory, base_name, number++, extension));
293  } while (full_pathname.FileOrDirectoryExists());
294  return full_pathname;
295 }
int number
static FilePath MakeFileName(const FilePath &directory, const FilePath &base_name, int number, const char *extension)
static FilePath testing::internal::FilePath::GenerateUniqueFileName ( const FilePath directory,
const FilePath base_name,
const char *  extension 
)
static
static FilePath testing::internal::FilePath::GenerateUniqueFileName ( const FilePath directory,
const FilePath base_name,
const char *  extension 
)
static
FilePath testing::internal::FilePath::GetCurrentDir ( )
static

Definition at line 99 of file gtest-filepath.cc.

References FilePath(), and GTEST_PATH_MAX_.

Referenced by testing::internal::UnitTestImpl::AddTestInfo(), and testing::internal::IsPathSeparator().

99  {
100 #if GTEST_OS_WINDOWS_MOBILE || GTEST_OS_WINDOWS_PHONE || GTEST_OS_WINDOWS_RT
101  // Windows CE doesn't have a current directory, so we just return
102  // something reasonable.
104 #elif GTEST_OS_WINDOWS
105  char cwd[GTEST_PATH_MAX_ + 1] = { '\0' };
106  return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd);
107 #else
108  char cwd[GTEST_PATH_MAX_ + 1] = { '\0' };
109  char* result = getcwd(cwd, sizeof(cwd));
110 # if GTEST_OS_NACL
111  // getcwd will likely fail in NaCl due to the sandbox, so return something
112  // reasonable. The user may have provided a shim implementation for getcwd,
113  // however, so fallback only when failure is detected.
114  return FilePath(result == NULL ? kCurrentDirectoryString : cwd);
115 # endif // GTEST_OS_NACL
116  return FilePath(result == NULL ? "" : cwd);
117 #endif // GTEST_OS_WINDOWS_MOBILE
118 }
const char kCurrentDirectoryString[]
#define GTEST_PATH_MAX_
static FilePath testing::internal::FilePath::GetCurrentDir ( )
static
static FilePath testing::internal::FilePath::GetCurrentDir ( )
static
bool testing::internal::FilePath::IsAbsolutePath ( ) const
bool testing::internal::FilePath::IsAbsolutePath ( ) const
bool testing::internal::FilePath::IsAbsolutePath ( ) const

Definition at line 265 of file gtest-filepath.cc.

References testing::internal::IsPathSeparator(), name, and pathname_.

Referenced by testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile(), testing::internal::IsPathSeparator(), IsRootDirectory(), and testing::internal::ShouldRunTestCase().

265  {
266  const char* const name = pathname_.c_str();
267 #if GTEST_OS_WINDOWS
268  return pathname_.length() >= 3 &&
269  ((name[0] >= 'a' && name[0] <= 'z') ||
270  (name[0] >= 'A' && name[0] <= 'Z')) &&
271  name[1] == ':' &&
272  IsPathSeparator(name[2]);
273 #else
274  return IsPathSeparator(name[0]);
275 #endif
276 }
const char * name
Definition: http_parser.c:437
static bool IsPathSeparator(char c)
bool testing::internal::FilePath::IsDirectory ( ) const
bool testing::internal::FilePath::IsDirectory ( ) const
bool testing::internal::FilePath::IsDirectory ( ) const
bool testing::internal::FilePath::IsEmpty ( ) const
inline

Definition at line 111 of file gtest-filepath.h.

Referenced by ConcatPaths(), and testing::internal::IsPathSeparator().

111 { return pathname_.empty(); }
bool testing::internal::FilePath::IsEmpty ( ) const
inline

Definition at line 111 of file gtest-filepath.h.

References string.

111 { return pathname_.empty(); }
bool testing::internal::FilePath::IsEmpty ( ) const
inline

Definition at line 111 of file gtest-filepath.h.

References string.

111 { return pathname_.empty(); }
bool testing::internal::FilePath::IsRootDirectory ( ) const

Definition at line 253 of file gtest-filepath.cc.

References IsAbsolutePath(), testing::internal::IsPathSeparator(), and pathname_.

Referenced by DirectoryExists(), and testing::internal::IsPathSeparator().

253  {
254 #if GTEST_OS_WINDOWS
255  // TODO(wan@google.com): on Windows a network share like
256  // \\server\share can be a root directory, although it cannot be the
257  // current directory. Handle this properly.
258  return pathname_.length() == 3 && IsAbsolutePath();
259 #else
260  return pathname_.length() == 1 && IsPathSeparator(pathname_.c_str()[0]);
261 #endif
262 }
static bool IsPathSeparator(char c)
bool testing::internal::FilePath::IsRootDirectory ( ) const
bool testing::internal::FilePath::IsRootDirectory ( ) const
FilePath testing::internal::FilePath::MakeFileName ( const FilePath directory,
const FilePath base_name,
int  number,
const char *  extension 
)
static

Definition at line 183 of file gtest-filepath.cc.

References ConcatPaths(), FilePath(), testing::internal::StreamableToString(), string(), and string.

Referenced by GenerateUniqueFileName(), and testing::internal::IsPathSeparator().

186  {
187  std::string file;
188  if (number == 0) {
189  file = base_name.string() + "." + extension;
190  } else {
191  file = base_name.string() + "_" + StreamableToString(number)
192  + "." + extension;
193  }
194  return ConcatPaths(directory, FilePath(file));
195 }
static FilePath ConcatPaths(const FilePath &directory, const FilePath &relative_path)
int number
std::string StreamableToString(const T &streamable)
const char * string
Definition: Conv.cpp:212
static FilePath testing::internal::FilePath::MakeFileName ( const FilePath directory,
const FilePath base_name,
int  number,
const char *  extension 
)
static
static FilePath testing::internal::FilePath::MakeFileName ( const FilePath directory,
const FilePath base_name,
int  number,
const char *  extension 
)
static
void testing::internal::FilePath::Normalize ( )
private
void testing::internal::FilePath::Normalize ( )
private
void testing::internal::FilePath::Normalize ( )
private

Definition at line 356 of file gtest-filepath.cc.

References upload::dest, testing::internal::IsPathSeparator(), testing::internal::kPathSeparator, and pathname_.

Referenced by testing::internal::IsPathSeparator().

356  {
357  if (pathname_.c_str() == NULL) {
358  pathname_ = "";
359  return;
360  }
361  const char* src = pathname_.c_str();
362  char* const dest = new char[pathname_.length() + 1];
363  char* dest_ptr = dest;
364  memset(dest_ptr, 0, pathname_.length() + 1);
365 
366  while (*src != '\0') {
367  *dest_ptr = *src;
368  if (!IsPathSeparator(*src)) {
369  src++;
370  } else {
371 #if GTEST_HAS_ALT_PATH_SEP_
372  if (*dest_ptr == kAlternatePathSeparator) {
373  *dest_ptr = kPathSeparator;
374  }
375 #endif
376  while (IsPathSeparator(*src))
377  src++;
378  }
379  dest_ptr++;
380  }
381  *dest_ptr = '\0';
382  pathname_ = dest;
383  delete[] dest;
384 }
dest
Definition: upload.py:394
static bool IsPathSeparator(char c)
const char kPathSeparator
FilePath& testing::internal::FilePath::operator= ( const FilePath rhs)
inline

Definition at line 68 of file gtest-filepath.h.

68  {
69  Set(rhs);
70  return *this;
71  }
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649
void Set(const FilePath &rhs)
FilePath& testing::internal::FilePath::operator= ( const FilePath rhs)
inline

Definition at line 68 of file gtest-filepath.h.

68  {
69  Set(rhs);
70  return *this;
71  }
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649
void Set(const FilePath &rhs)
FilePath& testing::internal::FilePath::operator= ( const FilePath rhs)
inline

Definition at line 68 of file gtest-filepath.h.

68  {
69  Set(rhs);
70  return *this;
71  }
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649
void Set(const FilePath &rhs)
FilePath testing::internal::FilePath::RemoveDirectoryName ( ) const
FilePath testing::internal::FilePath::RemoveDirectoryName ( ) const

Definition at line 155 of file gtest-filepath.cc.

References FilePath(), and FindLastPathSeparator().

Referenced by testing::internal::GetCurrentExecutableName(), testing::internal::IsPathSeparator(), and testing::internal::ShouldRunTestCase().

155  {
156  const char* const last_sep = FindLastPathSeparator();
157  return last_sep ? FilePath(last_sep + 1) : *this;
158 }
const char * FindLastPathSeparator() const
FilePath testing::internal::FilePath::RemoveDirectoryName ( ) const
FilePath testing::internal::FilePath::RemoveExtension ( const char *  extension) const
FilePath testing::internal::FilePath::RemoveExtension ( const char *  extension) const

Definition at line 124 of file gtest-filepath.cc.

References testing::internal::String::EndsWithCaseInsensitive(), FilePath(), pathname_, and string.

Referenced by testing::internal::IsPathSeparator().

124  {
125  const std::string dot_extension = std::string(".") + extension;
126  if (String::EndsWithCaseInsensitive(pathname_, dot_extension)) {
127  return FilePath(pathname_.substr(
128  0, pathname_.length() - dot_extension.length()));
129  }
130  return *this;
131 }
static bool EndsWithCaseInsensitive(const std::string &str, const std::string &suffix)
Definition: gtest.cc:1949
const char * string
Definition: Conv.cpp:212
FilePath testing::internal::FilePath::RemoveExtension ( const char *  extension) const
FilePath testing::internal::FilePath::RemoveFileName ( ) const
FilePath testing::internal::FilePath::RemoveFileName ( ) const

Definition at line 166 of file gtest-filepath.cc.

References c_str(), FilePath(), FindLastPathSeparator(), testing::internal::kCurrentDirectoryString, and string.

Referenced by CreateDirectoriesRecursively(), testing::internal::XmlUnitTestResultPrinter::EscapeXmlText(), testing::internal::IsPathSeparator(), and testing::internal::XmlUnitTestResultPrinter::OnTestIterationEnd().

166  {
167  const char* const last_sep = FindLastPathSeparator();
168  std::string dir;
169  if (last_sep) {
170  dir = std::string(c_str(), last_sep + 1 - c_str());
171  } else {
173  }
174  return FilePath(dir);
175 }
const char kCurrentDirectoryString[]
const char * c_str() const
const char * FindLastPathSeparator() const
const char * string
Definition: Conv.cpp:212
FilePath testing::internal::FilePath::RemoveFileName ( ) const
FilePath testing::internal::FilePath::RemoveTrailingPathSeparator ( ) const
FilePath testing::internal::FilePath::RemoveTrailingPathSeparator ( ) const

Definition at line 346 of file gtest-filepath.cc.

References FilePath(), IsDirectory(), and pathname_.

Referenced by ConcatPaths(), CreateDirectoriesRecursively(), CreateFolder(), DirectoryExists(), and testing::internal::IsPathSeparator().

346  {
347  return IsDirectory()
348  ? FilePath(pathname_.substr(0, pathname_.length() - 1))
349  : *this;
350 }
FilePath testing::internal::FilePath::RemoveTrailingPathSeparator ( ) const
void testing::internal::FilePath::Set ( const FilePath rhs)
inline

Definition at line 73 of file gtest-filepath.h.

References pathname_.

73  {
74  pathname_ = rhs.pathname_;
75  }
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649
void testing::internal::FilePath::Set ( const FilePath rhs)
inline
void testing::internal::FilePath::Set ( const FilePath rhs)
inline

Definition at line 73 of file gtest-filepath.h.

References pathname_.

73  {
74  pathname_ = rhs.pathname_;
75  }
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649
const std::string& testing::internal::FilePath::string ( ) const
inline
const std::string& testing::internal::FilePath::string ( ) const
inline

Definition at line 77 of file gtest-filepath.h.

77 { return pathname_; }
const std::string& testing::internal::FilePath::string ( ) const
inline

Definition at line 77 of file gtest-filepath.h.

77 { return pathname_; }

Member Data Documentation


The documentation for this class was generated from the following files: