disk_cache/backend_unittest.cc: Use TEST_P for multi-backend tests [chromium/src : main]

0 views
Skip to first unread message

Maks Orlovich (Gerrit)

unread,
May 29, 2025, 3:11:06 PM5/29/25
to Kenichi Ishibashi, Chromium LUCI CQ, chromium...@chromium.org, gavin...@chromium.org, net-r...@chromium.org
Attention needed from Kenichi Ishibashi

Maks Orlovich voted and added 3 comments

Votes added by Maks Orlovich

Commit-Queue+1

3 comments

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Maks Orlovich . resolved

If you think this is actually useful for you; I'll follow this up with entry_unittest (probably with an intermediate step of pushing the enum to DiskCacheTestBase[WithCache?] and replacing the various methods it has for it with it for consistency)

File net/disk_cache/backend_unittest.cc
Line 2109, Patchset 2: AddDelay();
Maks Orlovich . unresolved
Line 3359, Patchset 2 (Parent):// information.
Maks Orlovich . unresolved

MOCK_TIME AddDelay did that.

Open in Gerrit

Related details

Attention is currently required from:
  • Kenichi Ishibashi
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I99c693a9e401294fec3efcb4274c6f1c1fbffa05
Gerrit-Change-Number: 6603893
Gerrit-PatchSet: 3
Gerrit-Owner: Maks Orlovich <morl...@chromium.org>
Gerrit-Reviewer: Kenichi Ishibashi <ba...@chromium.org>
Gerrit-Reviewer: Maks Orlovich <morl...@chromium.org>
Gerrit-Attention: Kenichi Ishibashi <ba...@chromium.org>
Gerrit-Comment-Date: Thu, 29 May 2025 19:11:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Kenichi Ishibashi (Gerrit)

unread,
May 29, 2025, 7:03:31 PM5/29/25
to Maks Orlovich, Chromium LUCI CQ, chromium...@chromium.org, gavin...@chromium.org, net-r...@chromium.org
Attention needed from Maks Orlovich

Kenichi Ishibashi voted and added 3 comments

Votes added by Kenichi Ishibashi

Code-Review+1

3 comments

Patchset-level comments
Kenichi Ishibashi . resolved

lgtm, I like using TEST_P instead of separate helper functions :)

File net/disk_cache/backend_unittest.cc
Maks Orlovich . resolved
Kenichi Ishibashi

Acknowledged

Maks Orlovich . resolved

MOCK_TIME AddDelay did that.

Kenichi Ishibashi

Acknowledged

Open in Gerrit

Related details

Attention is currently required from:
  • Maks Orlovich
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I99c693a9e401294fec3efcb4274c6f1c1fbffa05
Gerrit-Change-Number: 6603893
Gerrit-PatchSet: 3
Gerrit-Owner: Maks Orlovich <morl...@chromium.org>
Gerrit-Reviewer: Kenichi Ishibashi <ba...@chromium.org>
Gerrit-Reviewer: Maks Orlovich <morl...@chromium.org>
Gerrit-Attention: Maks Orlovich <morl...@chromium.org>
Gerrit-Comment-Date: Thu, 29 May 2025 23:03:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Maks Orlovich <morl...@chromium.org>
satisfied_requirement
open
diffy

Maks Orlovich (Gerrit)

unread,
May 30, 2025, 9:59:45 AM5/30/25
to Kenichi Ishibashi, Chromium LUCI CQ, chromium...@chromium.org, gavin...@chromium.org, net-r...@chromium.org

Maks Orlovich voted Commit-Queue+2

Commit-Queue+2
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I99c693a9e401294fec3efcb4274c6f1c1fbffa05
Gerrit-Change-Number: 6603893
Gerrit-PatchSet: 3
Gerrit-Owner: Maks Orlovich <morl...@chromium.org>
Gerrit-Reviewer: Kenichi Ishibashi <ba...@chromium.org>
Gerrit-Reviewer: Maks Orlovich <morl...@chromium.org>
Gerrit-Comment-Date: Fri, 30 May 2025 13:59:38 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
May 30, 2025, 10:03:20 AM5/30/25
to Maks Orlovich, Kenichi Ishibashi, chromium...@chromium.org, gavin...@chromium.org, net-r...@chromium.org

Chromium LUCI CQ submitted the change

Change information

Commit message:
disk_cache/backend_unittest.cc: Use TEST_P for multi-backend tests

...Rather than doing it by hand with helper functions. The hope is that
if someone were to, say, be working on a different backend, they could
run all tests that are reasonably cross-backend on it easily with just a
few lines of changes. Also centralizes the smaller inconsistencies a
bit.
Change-Id: I99c693a9e401294fec3efcb4274c6f1c1fbffa05
Reviewed-by: Kenichi Ishibashi <ba...@chromium.org>
Commit-Queue: Maks Orlovich <morl...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1467452}
Files:
  • M net/disk_cache/backend_unittest.cc
Change size: L
Delta: 1 file changed, 139 insertions(+), 253 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Kenichi Ishibashi
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I99c693a9e401294fec3efcb4274c6f1c1fbffa05
Gerrit-Change-Number: 6603893
Gerrit-PatchSet: 4
Gerrit-Owner: Maks Orlovich <morl...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Kenichi Ishibashi <ba...@chromium.org>
Gerrit-Reviewer: Maks Orlovich <morl...@chromium.org>
open
diffy
satisfied_requirement

Tsuyoshi Horo (Gerrit)

unread,
Jun 1, 2025, 8:18:10 PM6/1/25
to Maks Orlovich, Chromium LUCI CQ, Kenichi Ishibashi, chromium...@chromium.org, gavin...@chromium.org, net-r...@chromium.org

Tsuyoshi Horo added 1 comment

Patchset-level comments
File-level comment, Patchset 4 (Latest):
Tsuyoshi Horo . resolved

Oh, thanks!

Actually I was planing to do the same thing as I'm implementing [a new backend](https://chromium-review.googlesource.com/c/chromium/src/+/6561822).

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I99c693a9e401294fec3efcb4274c6f1c1fbffa05
Gerrit-Change-Number: 6603893
Gerrit-PatchSet: 4
Gerrit-Owner: Maks Orlovich <morl...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Kenichi Ishibashi <ba...@chromium.org>
Gerrit-Reviewer: Maks Orlovich <morl...@chromium.org>
Gerrit-CC: Tsuyoshi Horo <ho...@chromium.org>
Gerrit-Comment-Date: Mon, 02 Jun 2025 00:17:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages