From 8d19c7d3c2cced64a6e1dd22bc893cd5fe25eb2f Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Thu, 1 Jul 2010 23:19:02 +0000 Subject: Deprecate more old filepath functions. These still exist on Windows due to being used by the installer, but by moving them into the Windows-only block we prevent them from being used in new code. BUG=24672 Review URL: http://codereview.chromium.org/2861042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51453 0039d316-1c4b-4281-b951-d872f2087c98 --- base/file_util_unittest.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'base/file_util_unittest.cc') diff --git a/base/file_util_unittest.cc b/base/file_util_unittest.cc index 4827f59..fd54963 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 { -- cgit v1.1