diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/path_service_unittest.cc | 2 | ||||
-rw-r--r-- | base/sys_info_unittest.cc | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/base/path_service_unittest.cc b/base/path_service_unittest.cc index d9eb0a5..32f49b2 100644 --- a/base/path_service_unittest.cc +++ b/base/path_service_unittest.cc @@ -27,7 +27,7 @@ bool ReturnsValidPath(int dir_type) { #if defined(OS_WIN) // Function to test DIR_LOCAL_APP_DATA_LOW on Windows XP. Make sure it fails. bool ReturnsInvalidPath(int dir_type) { - std::wstring path; + FilePath path; bool result = PathService::Get(base::DIR_LOCAL_APP_DATA_LOW, &path); return !result && path.empty(); } diff --git a/base/sys_info_unittest.cc b/base/sys_info_unittest.cc index 8c5391f..160abd6 100644 --- a/base/sys_info_unittest.cc +++ b/base/sys_info_unittest.cc @@ -22,9 +22,10 @@ TEST_F(SysInfoTest, AmountOfMem) { TEST_F(SysInfoTest, AmountOfFreeDiskSpace) { // We aren't actually testing that it's correct, just that it's sane. - std::wstring tmp_path; + FilePath tmp_path; ASSERT_TRUE(file_util::GetTempDir(&tmp_path)); - EXPECT_GT(base::SysInfo::AmountOfFreeDiskSpace(tmp_path), 0) << tmp_path; + EXPECT_GT(base::SysInfo::AmountOfFreeDiskSpace(tmp_path.ToWStringHack()), 0) + << tmp_path.value(); } TEST_F(SysInfoTest, GetEnvVar) { |