Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Unified Diff: net/disk_cache/disk_cache_test_base.cc

Issue 261045: Start migrating the disk cache to using FilePath. (Closed)
Patch Set: rebase Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/disk_cache/disk_cache_test_base.h ('k') | net/disk_cache/disk_cache_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: 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 a148f4c36a4289847e33cba8b2ba7cb62a6bbe3a..e2ced30136b1f81ecead1c230c147430b79a0476 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() {
« no previous file with comments | « net/disk_cache/disk_cache_test_base.h ('k') | net/disk_cache/disk_cache_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698