Index: base/file_util_unittest.cc |
diff --git a/base/file_util_unittest.cc b/base/file_util_unittest.cc |
index 31bb46fe42a208209e02f9024ef7b2d93cb11c7c..ae6560dc7b45203236baadeda032a7ec5e6a6331 100644 |
--- a/base/file_util_unittest.cc |
+++ b/base/file_util_unittest.cc |
@@ -311,6 +311,8 @@ static const struct dir_case { |
#endif |
}; |
+#if defined(OS_WIN) |
+// This function is deprecated, and only exists on Windows anymore. |
TEST_F(FileUtilTest, GetDirectoryFromPath) { |
for (unsigned int i = 0; i < arraysize(dir_cases); ++i) { |
const dir_case& dir = dir_cases[i]; |
@@ -319,6 +321,7 @@ TEST_F(FileUtilTest, GetDirectoryFromPath) { |
EXPECT_EQ(dir.directory, parent); |
} |
} |
+#endif |
TEST_F(FileUtilTest, CountFilesCreatedAfter) { |
// Create old file (that we don't want to count) |