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

Unified Diff: net/disk_cache/entry_unittest.cc

Issue 11649028: Add an IO thread index bitmap to disk cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remediate Created 7 years, 10 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
Index: net/disk_cache/entry_unittest.cc
diff --git a/net/disk_cache/entry_unittest.cc b/net/disk_cache/entry_unittest.cc
index 6e680349a7a79383e7a8c46bc6acff7fb24decb8..e8d458a66cffaff6f2cd44c4ea800f1a60080857 100644
--- a/net/disk_cache/entry_unittest.cc
+++ b/net/disk_cache/entry_unittest.cc
@@ -2002,7 +2002,10 @@ TEST_F(DiskCacheEntryTest, MemoryPartialSparseEntry) {
// Tests that corrupt sparse children are removed automatically.
TEST_F(DiskCacheEntryTest, CleanupSparseEntry) {
+ SetDirectMode();
InitCache();
+ cache_impl_->ClearIndexBitmapForTest();
rvargas (doing something else) 2013/02/12 01:58:33 why is this needed?
+
std::string key("the first key");
disk_cache::Entry* entry;
ASSERT_EQ(net::OK, CreateEntry(key, &entry));

Powered by Google App Engine
This is Rietveld 408576698