diff options
Diffstat (limited to 'base/path_service_unittest.cc')
-rw-r--r-- | base/path_service_unittest.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/path_service_unittest.cc b/base/path_service_unittest.cc index b75ab7e..970ea0c 100644 --- a/base/path_service_unittest.cc +++ b/base/path_service_unittest.cc @@ -31,7 +31,9 @@ #include "base/file_util.h" #include "base/logging.h" #include "base/path_service.h" +#if defined(OS_WIN) #include "base/win_util.h" +#endif #include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest-spi.h" @@ -45,12 +47,14 @@ bool ReturnsValidPath(int dir_type) { return result && !path.empty() && file_util::PathExists(path); } +#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; bool result = PathService::Get(base::DIR_LOCAL_APP_DATA_LOW, &path); return !result && path.empty(); } +#endif } // namespace |