From ebcb20c7ead50898319724aa42efb0e31acf1877 Mon Sep 17 00:00:00 2001 From: "tony@chromium.org" Date: Tue, 13 Oct 2009 20:22:37 +0000 Subject: Convert BlockFiles to use FilePath instead of wstring. BUG=24444 Review URL: http://codereview.chromium.org/274012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28873 0039d316-1c4b-4281-b951-d872f2087c98 --- net/disk_cache/disk_cache_test_util.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '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 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 cache(new disk_cache::BackendImpl( FilePath::FromWStringHack(path))); -- cgit v1.1