Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
ed16134f
Commit
ed16134f
authored
Jan 10, 2020
by
Abseil Team
Committed by
vslashg
Jan 16, 2020
Browse files
Googletest export
Change testing::TempDir() return value for Android PiperOrigin-RevId: 289102017
parent
d854bd6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
googletest/src/gtest.cc
googletest/src/gtest.cc
+5
-1
No files found.
googletest/src/gtest.cc
View file @
ed16134f
...
@@ -6289,7 +6289,11 @@ std::string TempDir() {
...
@@ -6289,7 +6289,11 @@ std::string TempDir() {
else
else
return
std
::
string
(
temp_dir
)
+
"
\\
"
;
return
std
::
string
(
temp_dir
)
+
"
\\
"
;
#elif GTEST_OS_LINUX_ANDROID
#elif GTEST_OS_LINUX_ANDROID
return
"/sdcard/"
;
const
char
*
temp_dir
=
internal
::
posix
::
GetEnv
(
"TEST_TMPDIR"
);
if
(
temp_dir
==
nullptr
||
temp_dir
[
0
]
==
'\0'
)
return
"/data/local/tmp/"
;
else
return
temp_dir
;
#else
#else
return
"/tmp/"
;
return
"/tmp/"
;
#endif // GTEST_OS_WINDOWS_MOBILE
#endif // GTEST_OS_WINDOWS_MOBILE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment