Returns whether the given character is a valid path separator.
| 8358 | |
| 8359 | // Returns whether the given character is a valid path separator. |
| 8360 | static bool IsPathSeparator(char c) { |
| 8361 | #if GTEST_HAS_ALT_PATH_SEP_ |
| 8362 | return (c == kPathSeparator) || (c == kAlternatePathSeparator); |
| 8363 | #else |
| 8364 | return c == kPathSeparator; |
| 8365 | #endif |
| 8366 | } |
| 8367 | |
| 8368 | // Returns the current working directory, or "" if unsuccessful. |
| 8369 | FilePath FilePath::GetCurrentDir() { |
no outgoing calls
no test coverage detected