summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/disk_cache_test_base.cc
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-01 00:58:01 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-01 00:58:01 +0000
commitf1940b946ea9f8589ecd95f82879abad152b73e1 (patch)
treeaca3f69422a631b18c3f2000aa35bed162810e1e /net/disk_cache/disk_cache_test_base.cc
parent27d4a38d7a4f692b18a8ea3bec0660804f2b96ea (diff)
downloadchromium_src-f1940b946ea9f8589ecd95f82879abad152b73e1.zip
chromium_src-f1940b946ea9f8589ecd95f82879abad152b73e1.tar.gz
chromium_src-f1940b946ea9f8589ecd95f82879abad152b73e1.tar.bz2
Disk cache: Open the disk cache experiment for new users.
Also, fix the code that makes the unit tests have consistent results. BUG=none TEST=none Review URL: http://codereview.chromium.org/160485 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22238 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.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/disk_cache/disk_cache_test_base.cc b/net/disk_cache/disk_cache_test_base.cc
index 986f3fb..db6af64 100644
--- a/net/disk_cache/disk_cache_test_base.cc
+++ b/net/disk_cache/disk_cache_test_base.cc
@@ -59,6 +59,10 @@ void DiskCacheTestWithCache::InitDiskCache() {
if (!implementation_) {
cache_ = disk_cache::CreateCacheBackend(path, force_creation_, size_,
net::DISK_CACHE);
+ disk_cache::BackendImpl* impl =
+ static_cast<disk_cache::BackendImpl*>(cache_);
+ if (impl)
+ impl->SetFlags(disk_cache::kNoRandom);
return;
}
@@ -80,6 +84,7 @@ void DiskCacheTestWithCache::InitDiskCacheImpl(const std::wstring& path) {
if (new_eviction_)
cache_impl_->SetNewEviction();
+ cache_impl_->SetFlags(disk_cache::kNoRandom);
ASSERT_TRUE(cache_impl_->Init());
}