Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1244)

Unified Diff: ipc/unix_domain_socket_util_unittest.cc

Issue 862823003: Use PathService to get temp dir name for IPC unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ipc/ipc_channel_posix_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/unix_domain_socket_util_unittest.cc
diff --git a/ipc/unix_domain_socket_util_unittest.cc b/ipc/unix_domain_socket_util_unittest.cc
index 813d4979260a611d67ecdc564898713b92b746c7..a8e9794cd2218fe8534779d807d43ba6fa471a6c 100644
--- a/ipc/unix_domain_socket_util_unittest.cc
+++ b/ipc/unix_domain_socket_util_unittest.cc
@@ -78,13 +78,9 @@ class SocketAcceptor : public base::MessageLoopForIO::Watcher {
};
const base::FilePath GetChannelDir() {
-#if defined(OS_ANDROID)
base::FilePath tmp_dir;
- PathService::Get(base::DIR_CACHE, &tmp_dir);
+ PathService::Get(base::DIR_TEMP, &tmp_dir);
return tmp_dir;
-#else
- return base::FilePath("/var/tmp");
-#endif
}
class TestUnixSocketConnection {
« no previous file with comments | « ipc/ipc_channel_posix_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698