diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-12 17:14:59 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-12 17:14:59 +0000 |
commit | cfaa1f2938c346d4801b895e7181f5de7d3755e6 (patch) | |
tree | 934967a90f94c5d50939929dd6ab38ad5dceed3e /net/disk_cache/disk_cache_test_base.cc | |
parent | 1ee19742db740fb60ed78266039f65c93c85c836 (diff) | |
download | chromium_src-cfaa1f2938c346d4801b895e7181f5de7d3755e6.zip chromium_src-cfaa1f2938c346d4801b895e7181f5de7d3755e6.tar.gz chromium_src-cfaa1f2938c346d4801b895e7181f5de7d3755e6.tar.bz2 |
Start migrating the disk cache to using FilePath.
This converts BackendImpl to using FilePath.
BUG=24444
Review URL: http://codereview.chromium.org/261045
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28711 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/disk_cache_test_base.cc')
-rw-r--r-- | net/disk_cache/disk_cache_test_base.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/disk_cache/disk_cache_test_base.cc b/net/disk_cache/disk_cache_test_base.cc index a148f4c..e2ced30 100644 --- a/net/disk_cache/disk_cache_test_base.cc +++ b/net/disk_cache/disk_cache_test_base.cc @@ -57,14 +57,14 @@ void DiskCacheTestWithCache::InitDiskCache() { ASSERT_TRUE(DeleteCache(path.c_str())); if (implementation_) - return InitDiskCacheImpl(path); + return InitDiskCacheImpl(FilePath::FromWStringHack(path)); cache_ = disk_cache::BackendImpl::CreateBackend(path, force_creation_, size_, net::DISK_CACHE, disk_cache::kNoRandom); } -void DiskCacheTestWithCache::InitDiskCacheImpl(const std::wstring& path) { +void DiskCacheTestWithCache::InitDiskCacheImpl(const FilePath& path) { if (mask_) cache_impl_ = new disk_cache::BackendImpl(path, mask_); else @@ -104,7 +104,7 @@ void DiskCacheTestWithCache::SimulateCrash() { std::wstring path = GetCachePath(); EXPECT_TRUE(CheckCacheIntegrity(path, new_eviction_)); - InitDiskCacheImpl(path); + InitDiskCacheImpl(FilePath::FromWStringHack(path)); } void DiskCacheTestWithCache::SetTestMode() { |