summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/disk_cache_test_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/disk_cache/disk_cache_test_util.cc')
-rw-r--r--net/disk_cache/disk_cache_test_util.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/disk_cache/disk_cache_test_util.cc b/net/disk_cache/disk_cache_test_util.cc
index 77d731f..ddc9799 100644
--- a/net/disk_cache/disk_cache_test_util.cc
+++ b/net/disk_cache/disk_cache_test_util.cc
@@ -72,11 +72,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)));