From 405a64b63ae9a6869923aa5b80cc77acf66e71bf Mon Sep 17 00:00:00 2001 From: "mark@chromium.org" Date: Wed, 16 Sep 2009 21:03:44 +0000 Subject: Set OS X cache directory to ~/Library/Caches/[app name]/[profile name] - Added implementation of GetUserCacheDirectory() for OS X. - Added FilePath::GetRelativePath(). - Implemented per-profile cache directories for OS X. Patch by Fred Akalin Code review URL: http://codereview.chromium.org/174053 Review URL: http://codereview.chromium.org/204043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26387 0039d316-1c4b-4281-b951-d872f2087c98 --- base/path_service_unittest.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'base/path_service_unittest.cc') diff --git a/base/path_service_unittest.cc b/base/path_service_unittest.cc index 32f49b2..cc86be0 100644 --- a/base/path_service_unittest.cc +++ b/base/path_service_unittest.cc @@ -47,7 +47,7 @@ TEST_F(PathServiceTest, Get) { for (int key = base::DIR_CURRENT; key < base::PATH_END; ++key) { EXPECT_PRED1(ReturnsValidPath, key); } -#ifdef OS_WIN +#if defined(OS_WIN) for (int key = base::PATH_WIN_START + 1; key < base::PATH_WIN_END; ++key) { if (key == base::DIR_LOCAL_APP_DATA_LOW && win_util::GetWinVersion() < win_util::WINVERSION_VISTA) { @@ -58,5 +58,9 @@ TEST_F(PathServiceTest, Get) { EXPECT_TRUE(ReturnsValidPath(key)) << key; } } +#elif defined(OS_MACOSX) + for (int key = base::PATH_MAC_START + 1; key < base::PATH_MAC_END; ++key) { + EXPECT_PRED1(ReturnsValidPath, key); + } #endif } -- cgit v1.1