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

Issue 225833002: simple cache: testing: AddDelay() between evictable entry sets (Closed)

Created:
6 years, 8 months ago by pasko
Modified:
6 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262070

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M net/disk_cache/entry_unittest.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
pasko
6 years, 8 months ago (2014-04-04 12:04:41 UTC) #1
Alexander Potapenko
On 2014/04/04 12:04:41, pasko wrote: LGTM. I confirm this test now passes under ThreadSanitizer.
6 years, 8 months ago (2014-04-04 12:09:59 UTC) #2
pasko
The CQ bit was checked by pasko@chromium.org
6 years, 8 months ago (2014-04-06 22:40:09 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pasko@chromium.org/225833002/1
6 years, 8 months ago (2014-04-06 22:40:13 UTC) #4
commit-bot: I haz the power
6 years, 8 months ago (2014-04-07 02:38:02 UTC) #5
Message was sent while issue was closed.
Change committed as 262070

Powered by Google App Engine
This is Rietveld 408576698