summaryrefslogtreecommitdiffstats
path: root/base/file_util_unittest.cc
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-20 07:06:40 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-20 07:06:40 +0000
commit6f5418ba7f128c0e1d0c89f8b647bb68400e9b22 (patch)
treeff9018511a59185f874ac203578b69944508e7bf /base/file_util_unittest.cc
parentf49e5960d8d2a0476841615a7a6d36137a0c399e (diff)
downloadchromium_src-6f5418ba7f128c0e1d0c89f8b647bb68400e9b22.zip
chromium_src-6f5418ba7f128c0e1d0c89f8b647bb68400e9b22.tar.gz
chromium_src-6f5418ba7f128c0e1d0c89f8b647bb68400e9b22.tar.bz2
Make the shmem-specific functions in file_util.h POSIX-only.
They're only used on POSIX. (This is an initial move/removal; more to come.) R=brettw@chromium.org Review URL: https://codereview.chromium.org/204683002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258242 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_unittest.cc')
-rw-r--r--base/file_util_unittest.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/base/file_util_unittest.cc b/base/file_util_unittest.cc
index 8ee55ff..4bdd90f 100644
--- a/base/file_util_unittest.cc
+++ b/base/file_util_unittest.cc
@@ -1691,11 +1691,13 @@ TEST_F(FileUtilTest, CreateNewTemporaryDirInDirTest) {
EXPECT_TRUE(DeleteFile(new_dir, false));
}
+#if defined(OS_POSIX)
TEST_F(FileUtilTest, GetShmemTempDirTest) {
FilePath dir;
EXPECT_TRUE(GetShmemTempDir(false, &dir));
EXPECT_TRUE(DirectoryExists(dir));
}
+#endif
TEST_F(FileUtilTest, GetHomeDirTest) {
#if !defined(OS_ANDROID) // Not implemented on Android.