diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-23 12:52:11 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-23 12:52:11 +0000 |
commit | a18f79afc7cf1d3369d07a2e59b4ee100d9ff9fa (patch) | |
tree | daa803fd1d74abf5c25bb7ab04d905fbff3882cc /base/file_util_unittest.cc | |
parent | d505a6d89230804cb9eeecc641b383bb2d4d5ce0 (diff) | |
download | chromium_src-a18f79afc7cf1d3369d07a2e59b4ee100d9ff9fa.zip chromium_src-a18f79afc7cf1d3369d07a2e59b4ee100d9ff9fa.tar.gz chromium_src-a18f79afc7cf1d3369d07a2e59b4ee100d9ff9fa.tar.bz2 |
Deprecate GetDirectoryFromPath on non-Windows.
Due to a bunch of changes I made last week, we now only need this
in Windows-specific codepaths.
BUG=24672
Review URL: http://codereview.chromium.org/654009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39715 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_unittest.cc')
-rw-r--r-- | base/file_util_unittest.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/file_util_unittest.cc b/base/file_util_unittest.cc index 31bb46f..ae6560d 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) |