[Media Indicator] Add test for RECORDING [chromium/src : main]

0 views
Skip to first unread message

Dan Polanco (Gerrit)

unread,
Dec 5, 2025, 3:24:29 PM (2 days ago) Dec 5
to Calder Kitagawa, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org
Attention needed from Calder Kitagawa

Dan Polanco added 2 comments

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Dan Polanco . resolved

PTAL,thanks!

File chrome/android/javatests/src/org/chromium/chrome/browser/tab/TabMediaIndicatorTest.java
Line 201, Patchset 2 (Latest): IUi2Locator allowButton = Ui2Locators.withText("Allow this time");
UiAutomatorUtils.getInstance().click(allowButton);
Dan Polanco . resolved

Not a big fan of this, but I will give it a try.
The other flags that "auto accept" permissions use a Fake class which does not communicate with MediaStreamCaptureIndicator (class needed for getting the media signals).

Open in Gerrit

Related details

Attention is currently required from:
  • Calder Kitagawa
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not 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: I36ff55f1447a5d6b181a65685a895ceff06c65ba
Gerrit-Change-Number: 7223790
Gerrit-PatchSet: 2
Gerrit-Owner: Dan Polanco <pol...@google.com>
Gerrit-Reviewer: Calder Kitagawa <ckit...@chromium.org>
Gerrit-Reviewer: Dan Polanco <pol...@google.com>
Gerrit-Attention: Calder Kitagawa <ckit...@chromium.org>
Gerrit-Comment-Date: Fri, 05 Dec 2025 20:24:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Calder Kitagawa (Gerrit)

unread,
Dec 5, 2025, 3:26:48 PM (2 days ago) Dec 5
to Dan Polanco, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org
Attention needed from Dan Polanco

Calder Kitagawa added 1 comment

File chrome/android/javatests/src/org/chromium/chrome/browser/tab/TabMediaIndicatorTest.java
Line 201, Patchset 2 (Latest): IUi2Locator allowButton = Ui2Locators.withText("Allow this time");
UiAutomatorUtils.getInstance().click(allowButton);
Dan Polanco . unresolved

Not a big fan of this, but I will give it a try.
The other flags that "auto accept" permissions use a Fake class which does not communicate with MediaStreamCaptureIndicator (class needed for getting the media signals).

Calder Kitagawa

Can you use Espresso for this instead?

`onViewWaiting(withText("Allow this time")).perform(click());`

Open in Gerrit

Related details

Attention is currently required from:
  • Dan Polanco
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • 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: I36ff55f1447a5d6b181a65685a895ceff06c65ba
    Gerrit-Change-Number: 7223790
    Gerrit-PatchSet: 2
    Gerrit-Owner: Dan Polanco <pol...@google.com>
    Gerrit-Reviewer: Calder Kitagawa <ckit...@chromium.org>
    Gerrit-Reviewer: Dan Polanco <pol...@google.com>
    Gerrit-Attention: Dan Polanco <pol...@google.com>
    Gerrit-Comment-Date: Fri, 05 Dec 2025 20:26:38 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Dan Polanco <pol...@google.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Dan Polanco (Gerrit)

    unread,
    Dec 5, 2025, 4:50:11 PM (2 days ago) Dec 5
    to Calder Kitagawa, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org
    Attention needed from Calder Kitagawa

    Dan Polanco added 1 comment

    File chrome/android/javatests/src/org/chromium/chrome/browser/tab/TabMediaIndicatorTest.java
    Line 201, Patchset 2: IUi2Locator allowButton = Ui2Locators.withText("Allow this time");
    UiAutomatorUtils.getInstance().click(allowButton);
    Dan Polanco . resolved

    Not a big fan of this, but I will give it a try.
    The other flags that "auto accept" permissions use a Fake class which does not communicate with MediaStreamCaptureIndicator (class needed for getting the media signals).

    Calder Kitagawa

    Can you use Espresso for this instead?

    `onViewWaiting(withText("Allow this time")).perform(click());`

    Dan Polanco

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Calder Kitagawa
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not 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: I36ff55f1447a5d6b181a65685a895ceff06c65ba
      Gerrit-Change-Number: 7223790
      Gerrit-PatchSet: 3
      Gerrit-Owner: Dan Polanco <pol...@google.com>
      Gerrit-Reviewer: Calder Kitagawa <ckit...@chromium.org>
      Gerrit-Reviewer: Dan Polanco <pol...@google.com>
      Gerrit-Attention: Calder Kitagawa <ckit...@chromium.org>
      Gerrit-Comment-Date: Fri, 05 Dec 2025 21:50:00 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Calder Kitagawa <ckit...@chromium.org>
      Comment-In-Reply-To: Dan Polanco <pol...@google.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Calder Kitagawa (Gerrit)

      unread,
      Dec 5, 2025, 4:58:08 PM (2 days ago) Dec 5
      to Dan Polanco, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org
      Attention needed from Dan Polanco

      Calder Kitagawa voted and added 1 comment

      Votes added by Calder Kitagawa

      Code-Review+1

      1 comment

      Patchset-level comments
      File-level comment, Patchset 3 (Latest):
      Calder Kitagawa . resolved

      LGTM

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Dan Polanco
      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: I36ff55f1447a5d6b181a65685a895ceff06c65ba
      Gerrit-Change-Number: 7223790
      Gerrit-PatchSet: 3
      Gerrit-Owner: Dan Polanco <pol...@google.com>
      Gerrit-Reviewer: Calder Kitagawa <ckit...@chromium.org>
      Gerrit-Reviewer: Dan Polanco <pol...@google.com>
      Gerrit-Attention: Dan Polanco <pol...@google.com>
      Gerrit-Comment-Date: Fri, 05 Dec 2025 21:57:56 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Dan Polanco (Gerrit)

      unread,
      Dec 5, 2025, 4:59:29 PM (2 days ago) Dec 5
      to Calder Kitagawa, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org

      Dan Polanco voted Commit-Queue+2

      Commit-Queue+2
      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: I36ff55f1447a5d6b181a65685a895ceff06c65ba
      Gerrit-Change-Number: 7223790
      Gerrit-PatchSet: 3
      Gerrit-Owner: Dan Polanco <pol...@google.com>
      Gerrit-Reviewer: Calder Kitagawa <ckit...@chromium.org>
      Gerrit-Reviewer: Dan Polanco <pol...@google.com>
      Gerrit-Comment-Date: Fri, 05 Dec 2025 21:59:15 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Dec 5, 2025, 6:25:05 PM (2 days ago) Dec 5
      to Dan Polanco, Calder Kitagawa, chromium...@chromium.org, feature-me...@chromium.org

      Chromium LUCI CQ submitted the change

      Change information

      Commit message:
      [Media Indicator] Add test for RECORDING
      Bug: 454045510
      Change-Id: I36ff55f1447a5d6b181a65685a895ceff06c65ba
      Commit-Queue: Dan Polanco <pol...@google.com>
      Reviewed-by: Calder Kitagawa <ckit...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#1554963}
      Files:
      • M chrome/android/javatests/src/org/chromium/chrome/browser/tab/TabMediaIndicatorTest.java
      • M chrome/test/data/media/tab_media_indicator.html
      Change size: M
      Delta: 2 files changed, 91 insertions(+), 14 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Calder Kitagawa
      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: I36ff55f1447a5d6b181a65685a895ceff06c65ba
      Gerrit-Change-Number: 7223790
      Gerrit-PatchSet: 4
      Gerrit-Owner: Dan Polanco <pol...@google.com>
      Gerrit-Reviewer: Calder Kitagawa <ckit...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Dan Polanco <pol...@google.com>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages