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_; |