Chromium Code Reviews| Index: net/disk_cache/disk_cache_test_util.cc |
| diff --git a/net/disk_cache/disk_cache_test_util.cc b/net/disk_cache/disk_cache_test_util.cc |
| index 77d731fb45197941799c34c4841a09dedcdf80b7..e3f3f9f760b61349b7c629e3a8f8b113c5754b2c 100644 |
| --- a/net/disk_cache/disk_cache_test_util.cc |
| +++ b/net/disk_cache/disk_cache_test_util.cc |
| @@ -5,6 +5,7 @@ |
| #include "net/disk_cache/disk_cache_test_util.h" |
| #include "base/logging.h" |
| +#include "base/file_path.h" |
|
Lei Zhang
2009/10/13 20:15:54
I haven't bothered to put in file_path.h in file w
|
| #include "base/file_util.h" |
| #include "base/path_service.h" |
| #include "net/base/net_errors.h" |
| @@ -72,11 +73,15 @@ bool CreateCacheTestFile(const wchar_t* name) { |
| return true; |
| } |
| -bool DeleteCache(const wchar_t* path) { |
| +bool DeleteCache(const FilePath& path) { |
| disk_cache::DeleteCache(path, false); |
| return true; |
| } |
| +bool DeleteCache(const wchar_t* path) { |
| + return DeleteCache(FilePath::FromWStringHack(path)); |
| +} |
| + |
| bool CheckCacheIntegrity(const std::wstring& path, bool new_eviction) { |
| scoped_ptr<disk_cache::BackendImpl> cache(new disk_cache::BackendImpl( |
| FilePath::FromWStringHack(path))); |