Returns whether the given character is a valid path separator.
| 7516 | |
| 7517 | // Returns whether the given character is a valid path separator. |
| 7518 | static bool IsPathSeparator(char c) { |
| 7519 | #if GTEST_HAS_ALT_PATH_SEP_ |
| 7520 | return (c == kPathSeparator) || (c == kAlternatePathSeparator); |
| 7521 | #else |
| 7522 | return c == kPathSeparator; |
| 7523 | #endif |
| 7524 | } |
| 7525 | |
| 7526 | // Returns the current working directory, or "" if unsuccessful. |
| 7527 | FilePath FilePath::GetCurrentDir() { |
no outgoing calls
no test coverage detected