simple cache: testing: AddDelay() between evictable entry sets
commitb77e1faf29610f1120e1876c392a4de71b39d759
authorpasko@chromium.org <pasko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 7 Apr 2014 02:38:00 +0000 (7 02:38 +0000)
committerpasko@chromium.org <pasko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 7 Apr 2014 02:38:00 +0000 (7 02:38 +0000)
tree905f020964a47e0515bd9e4abc86bcad28e2058c
parent5c5899052400a3f461a603b8e9648a4722495fdb
simple cache: testing: AddDelay() between evictable entry sets

We switched to very coarse-grained timestamps in the backend. This requires
adding synthetic delays in tests to make different timestamps for different
subsets of entries. We added one delay in the test, but forgot about the other.

This change separates the last two entries from the rest with a delay. With the
delay the current eviction algorithm (i.e. sort by timestamp, evict down to the
low watermark), should not evict these two last entries.

BUG=234776
TBR=gavinp@chromium.org

Review URL: https://codereview.chromium.org/225833002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262070 0039d316-1c4b-4281-b951-d872f2087c98
net/disk_cache/entry_unittest.cc