From cfaa1f2938c346d4801b895e7181f5de7d3755e6 Mon Sep 17 00:00:00 2001 From: "tony@chromium.org" Date: Mon, 12 Oct 2009 17:14:59 +0000 Subject: 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 --- net/disk_cache/disk_cache_test_base.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'net/disk_cache/disk_cache_test_base.cc') 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() { -- cgit v1.1