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

Unified Diff: net/disk_cache/disk_cache_test_base.h

Issue 6292011: Disk cache: Prevent obscure file corruption and deal... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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/disk_cache_test_base.h
===================================================================
--- net/disk_cache/disk_cache_test_base.h (revision 71365)
+++ net/disk_cache/disk_cache_test_base.h (working copy)
@@ -112,6 +112,14 @@
int WriteSparseData(disk_cache::Entry* entry, int64 offset,
net::IOBuffer* buf, int len);
+ // Asks the cache to trim a an entry. If |empty| is true, the whole entry is
+ // deleted.
+ void TrimForTest(bool empty);
+
+ // Asks the cache to trim a an entry from the deleted list. If |empty| is
+ // true, the whole entry is deleted.
+ void TrimDeletedListForTest(bool empty);
+
// cache_ will always have a valid object, regardless of how the cache was
// initialized. The implementation pointers can be NULL.
disk_cache::Backend* cache_;

Powered by Google App Engine
This is Rietveld 408576698