[DBSC] Support in-refresh challenges in browser tests [chromium/src : main]

0 views
Skip to first unread message

Alex Ilin (Gerrit)

unread,
Apr 3, 2026, 12:40:42 PM (2 days ago) Apr 3
to Alex Ilin, Daniel Rubery, Chromium LUCI CQ, chromium...@chromium.org, net-r...@chromium.org
Attention needed from Daniel Rubery

Alex Ilin added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Alex Ilin . resolved

Daniel, could you PTAL? This is a prep CL as I noticed some gaps in DBSC browser tests.

Open in Gerrit

Related details

Attention is currently required from:
  • Daniel Rubery
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
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: I97db724d4f39a81513caae4409eac31eb6bfb08b
Gerrit-Change-Number: 7726305
Gerrit-PatchSet: 1
Gerrit-Owner: Alex Ilin <alex...@chromium.org>
Gerrit-Reviewer: Alex Ilin <alex...@chromium.org>
Gerrit-Reviewer: Daniel Rubery <dru...@chromium.org>
Gerrit-Attention: Daniel Rubery <dru...@chromium.org>
Gerrit-Comment-Date: Fri, 03 Apr 2026 16:40:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Daniel Rubery (Gerrit)

unread,
Apr 3, 2026, 6:37:06 PM (2 days ago) Apr 3
to Alex Ilin, Chromium LUCI CQ, chromium...@chromium.org, net-r...@chromium.org
Attention needed from Alex Ilin

Daniel Rubery voted and added 1 comment

Votes added by Daniel Rubery

Code-Review+1

1 comment

File net/device_bound_sessions/test_support.cc
Line 111, Patchset 1 (Latest): bool is_refresh = request.relative_url.starts_with("/dbsc_refresh_session");
Daniel Rubery . unresolved

Meta-point: At some point the number of query params is going to get unreadable. There's no reason this function has to be stateless. We might be able to have a `TestSessionServer` object that we use to configure the sessions instead.

Open in Gerrit

Related details

Attention is currently required from:
  • Alex Ilin
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    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: I97db724d4f39a81513caae4409eac31eb6bfb08b
    Gerrit-Change-Number: 7726305
    Gerrit-PatchSet: 1
    Gerrit-Owner: Alex Ilin <alex...@chromium.org>
    Gerrit-Reviewer: Alex Ilin <alex...@chromium.org>
    Gerrit-Reviewer: Daniel Rubery <dru...@chromium.org>
    Gerrit-Attention: Alex Ilin <alex...@chromium.org>
    Gerrit-Comment-Date: Fri, 03 Apr 2026 22:36:55 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Alex Ilin (Gerrit)

    unread,
    4:45 AM (15 hours ago) 4:45 AM
    to Alex Ilin, Daniel Rubery, Chromium LUCI CQ, chromium...@chromium.org, net-r...@chromium.org

    Alex Ilin voted and added 2 comments

    Votes added by Alex Ilin

    Commit-Queue+2

    2 comments

    Patchset-level comments
    Alex Ilin . resolved

    Thank you!

    File net/device_bound_sessions/test_support.cc
    Line 111, Patchset 1 (Latest): bool is_refresh = request.relative_url.starts_with("/dbsc_refresh_session");
    Daniel Rubery . resolved

    Meta-point: At some point the number of query params is going to get unreadable. There's no reason this function has to be stateless. We might be able to have a `TestSessionServer` object that we use to configure the sessions instead.

    Alex Ilin

    Ack. Prototype browser tests [1] have something like this.

    Their set-up is a bit awkward because DBSC-prototype makes some requests on startup so the server state must be passed during the test initialization [2]. Also, the test server runs on its own thread, so the initialization at startup helps avoid synchronization issues.

    `EmbeddedTestServer` doesn't publicly expose an API to post tasks on the server's thread, so it will be tricky to control its state once the server has started. There is a `PostTaskToIOThreadAndWait()` function but it's private [3].

    [1] https://crsrc.org/c/chrome/browser/signin/bound_session_credentials/bound_session_cookie_refresh_service_impl_browsertest.cc;drc=0997588bfa4fb50d4a030cba70b93ae42e9ded30;l=261
    [2] https://crsrc.org/c/chrome/browser/signin/bound_session_credentials/bound_session_cookie_refresh_service_impl_browsertest.cc;drc=91fbe18b2afd81017d9b260a44a6f5491efe2f71;l=684
    [3] https://crsrc.org/c/net/test/embedded_test_server/embedded_test_server.h;drc=91fbe18b2afd81017d9b260a44a6f5491efe2f71;l=784

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement satisfiedReview-Enforcement
      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: I97db724d4f39a81513caae4409eac31eb6bfb08b
      Gerrit-Change-Number: 7726305
      Gerrit-PatchSet: 1
      Gerrit-Owner: Alex Ilin <alex...@chromium.org>
      Gerrit-Reviewer: Alex Ilin <alex...@chromium.org>
      Gerrit-Reviewer: Daniel Rubery <dru...@chromium.org>
      Gerrit-Comment-Date: Sun, 05 Apr 2026 08:45:10 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Daniel Rubery <dru...@chromium.org>
      satisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages