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

Issue 13517004: Test cache creation retry via public interface only. (Closed)

Created:
7 years, 8 months ago by pasko-google - do not use
Modified:
7 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Test cache creation retry via public interface only. This is a cleanup after: https://codereview.chromium.org/12794003/ One test for backend force retry is enough, the other test (CreateBackend_MissingFile) is converted to be backend implementation specific. The CreateCacheViaPublicInterface() is called only once, but to eliminate it there is a need to make the cache_thread_ protected. Also, I am sure the name is not ideal, please suggest another. The New Eviction allows not to be very strict about version comparison as stored in the files on disk, this allows creating the BackendImpl with no flags and then being able to pass the common integrity check. BUG=173384 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192558

Patch Set 1 #

Total comments: 2

Patch Set 2 : move the CreateCacheViaPublicInterface() logic to the DeleteOld test #

Patch Set 3 : rebased #

Patch Set 4 : check cache integrity after destroying the backend #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -63 lines) Patch
M net/disk_cache/backend_unittest.cc View 1 2 3 2 chunks +27 lines, -5 lines 0 comments Download
M net/disk_cache/cache_creator.cc View 1 2 2 chunks +42 lines, -1 line 0 comments Download
M net/disk_cache/cache_util.h View 1 2 1 chunk +0 lines, -37 lines 0 comments Download
M net/disk_cache/disk_cache_test_base.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M net/disk_cache/disk_cache_test_base.cc View 1 1 chunk +0 lines, -19 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
pasko-google - do not use
7 years, 8 months ago (2013-04-03 09:58:06 UTC) #1
rvargas (doing something else)
https://codereview.chromium.org/13517004/diff/1/net/disk_cache/backend_unittest.cc File net/disk_cache/backend_unittest.cc (right): https://codereview.chromium.org/13517004/diff/1/net/disk_cache/backend_unittest.cc#newcode1554 net/disk_cache/backend_unittest.cc:1554: CreateCacheViaPublicInterface(); I think the test would be more clear ...
7 years, 8 months ago (2013-04-03 17:44:22 UTC) #2
pasko-google - do not use
On 2013/04/03 17:44:22, rvargas wrote: > https://codereview.chromium.org/13517004/diff/1/net/disk_cache/backend_unittest.cc > File net/disk_cache/backend_unittest.cc (right): > > https://codereview.chromium.org/13517004/diff/1/net/disk_cache/backend_unittest.cc#newcode1554 > ...
7 years, 8 months ago (2013-04-03 17:48:46 UTC) #3
pasko-google - do not use
On 2013/04/03 17:48:46, pasko wrote: > On 2013/04/03 17:44:22, rvargas wrote: > > > https://codereview.chromium.org/13517004/diff/1/net/disk_cache/backend_unittest.cc ...
7 years, 8 months ago (2013-04-03 17:50:15 UTC) #4
pasko-google - do not use
https://codereview.chromium.org/13517004/diff/1/net/disk_cache/backend_unittest.cc File net/disk_cache/backend_unittest.cc (right): https://codereview.chromium.org/13517004/diff/1/net/disk_cache/backend_unittest.cc#newcode1554 net/disk_cache/backend_unittest.cc:1554: CreateCacheViaPublicInterface(); On 2013/04/03 17:44:22, rvargas wrote: > I think ...
7 years, 8 months ago (2013-04-03 18:12:30 UTC) #5
rvargas (doing something else)
lgtm
7 years, 8 months ago (2013-04-03 18:25:33 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pasko@google.com/13517004/18001
7 years, 8 months ago (2013-04-04 11:24:01 UTC) #7
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) net_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=130968
7 years, 8 months ago (2013-04-04 13:28:05 UTC) #8
pasko-google - do not use
In Patch Set 3 I am moving the cache integrity check to a point after ...
7 years, 8 months ago (2013-04-05 11:15:03 UTC) #9
gavinp
lgtm.
7 years, 8 months ago (2013-04-05 11:19:13 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pasko@google.com/13517004/18004
7 years, 8 months ago (2013-04-05 11:23:09 UTC) #11
commit-bot: I haz the power
7 years, 8 months ago (2013-04-05 13:27:10 UTC) #12
Message was sent while issue was closed.
Change committed as 192558

Powered by Google App Engine
This is Rietveld 408576698