diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 20:22:37 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 20:22:37 +0000 |
commit | ebcb20c7ead50898319724aa42efb0e31acf1877 (patch) | |
tree | fc1b9f066fc9ac3aa2faa32ae56e765f9133423a /net/disk_cache/disk_cache_test_util.cc | |
parent | 55a75d99c6609ed4f6dc7052fcf3d907efaf7137 (diff) | |
download | chromium_src-ebcb20c7ead50898319724aa42efb0e31acf1877.zip chromium_src-ebcb20c7ead50898319724aa42efb0e31acf1877.tar.gz chromium_src-ebcb20c7ead50898319724aa42efb0e31acf1877.tar.bz2 |
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
Diffstat (limited to 'net/disk_cache/disk_cache_test_util.cc')
-rw-r--r-- | net/disk_cache/disk_cache_test_util.cc | 6 |
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))); |