diff options
Diffstat (limited to 'chrome/common/chrome_paths_unittest.cc')
| -rw-r--r-- | chrome/common/chrome_paths_unittest.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/common/chrome_paths_unittest.cc b/chrome/common/chrome_paths_unittest.cc index 5251154..3816cf6 100644 --- a/chrome/common/chrome_paths_unittest.cc +++ b/chrome/common/chrome_paths_unittest.cc @@ -6,6 +6,7 @@ #include <stdlib.h> +#include "base/base_paths.h" #include "base/file_util.h" #include "base/files/file_path.h" #include "base/path_service.h" @@ -29,7 +30,8 @@ TEST(ChromePaths, UserCacheDir) { base::FilePath expected_cache_dir; ASSERT_TRUE(PathService::Get(base::DIR_CACHE, &expected_cache_dir)); #elif(OS_POSIX) - base::FilePath homedir = base::GetHomeDir(); + base::FilePath homedir; + PathService::Get(base::DIR_HOME, &homedir); // Note: we assume XDG_CACHE_HOME/XDG_CONFIG_HOME are at their // default settings. test_profile_dir = homedir.Append(".config/foobar"); |
