summaryrefslogtreecommitdiffstats
path: root/googletest/src/gtest-port.cc
diff options
context:
space:
mode:
authorGennadiy Civil <misterg@google.com>2017-05-02 18:16:11 (GMT)
committerGennadiy Civil <misterg@google.com>2017-05-02 18:16:11 (GMT)
commit611e8a99de2b1c049fcd65c0d32a532c1b6301d6 (patch)
treea2d81b0832231e7017dcadeeae58301ab8920124 /googletest/src/gtest-port.cc
parentaa148eb2b7f70ede0eb10de34b6254826bfb34f4 (diff)
downloadgoogletest-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.cc18
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));