Index: net/disk_cache/disk_cache_test_base.cc |
=================================================================== |
--- net/disk_cache/disk_cache_test_base.cc (revision 22075) |
+++ net/disk_cache/disk_cache_test_base.cc (working copy) |
@@ -59,6 +59,10 @@ |
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 @@ |
if (new_eviction_) |
cache_impl_->SetNewEviction(); |
+ cache_impl_->SetFlags(disk_cache::kNoRandom); |
ASSERT_TRUE(cache_impl_->Init()); |
} |