diff options
author | Gennadiy Civil <misterg@google.com> | 2017-05-02 18:16:11 (GMT) |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2017-05-02 18:16:11 (GMT) |
commit | 611e8a99de2b1c049fcd65c0d32a532c1b6301d6 (patch) | |
tree | a2d81b0832231e7017dcadeeae58301ab8920124 /googletest/src/gtest-port.cc | |
parent | aa148eb2b7f70ede0eb10de34b6254826bfb34f4 (diff) | |
download | googletest-611e8a99de2b1c049fcd65c0d32a532c1b6301d6.zip googletest-611e8a99de2b1c049fcd65c0d32a532c1b6301d6.tar.gz googletest-611e8a99de2b1c049fcd65c0d32a532c1b6301d6.tar.bz2 |
Changes to make TempDir() publicrefs/pull/1077/head
Fixes #1076.
Diffstat (limited to 'googletest/src/gtest-port.cc')
-rw-r--r-- | googletest/src/gtest-port.cc | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/googletest/src/gtest-port.cc b/googletest/src/gtest-port.cc index e5bf3dd..e378d7d 100644 --- a/googletest/src/gtest-port.cc +++ b/googletest/src/gtest-port.cc @@ -1055,24 +1055,6 @@ std::string GetCapturedStderr() { #endif // GTEST_HAS_STREAM_REDIRECTION -std::string TempDir() { -#if GTEST_OS_WINDOWS_MOBILE - return "\\temp\\"; -#elif GTEST_OS_WINDOWS - const char* temp_dir = posix::GetEnv("TEMP"); - if (temp_dir == NULL || temp_dir[0] == '\0') - return "\\temp\\"; - else if (temp_dir[strlen(temp_dir) - 1] == '\\') - return temp_dir; - else - return std::string(temp_dir) + "\\"; -#elif GTEST_OS_LINUX_ANDROID - return "/sdcard/"; -#else - return "/tmp/"; -#endif // GTEST_OS_WINDOWS_MOBILE -} - size_t GetFileSize(FILE* file) { fseek(file, 0, SEEK_END); return static_cast<size_t>(ftell(file)); |