Index: base/file_util_unittest.cc |
diff --git a/base/file_util_unittest.cc b/base/file_util_unittest.cc |
index 39e5398cb2f0f9cdd0def3dcc918730e46bad9a0..20f9c9829191d9aa61180ae7bfe019e2f063cf55 100644 |
--- a/base/file_util_unittest.cc |
+++ b/base/file_util_unittest.cc |
@@ -325,6 +325,8 @@ static const struct filename_case { |
#endif |
}; |
+#if defined(OS_WIN) |
+// This function is deprecated on non-Windows. |
TEST_F(FileUtilTest, GetFilenameFromPath) { |
for (unsigned int i = 0; i < arraysize(filename_cases); ++i) { |
const filename_case& value = filename_cases[i]; |
@@ -332,6 +334,7 @@ TEST_F(FileUtilTest, GetFilenameFromPath) { |
EXPECT_EQ(value.filename, result); |
} |
} |
+#endif |
// Test finding the file type from a path name |
static const struct extension_case { |