commit | 703f0f6658d5dda6df4a9617d41b5f3d15dc5d7a | [log] [tgz] |
---|---|---|
author | Kaan Alsan <alsan@chromium.org> | Wed May 14 13:44:13 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed May 14 13:44:13 2025 |
tree | 6dde02e9a20e3518ad89aea02180f017a5bd4aa8 | |
parent | 16294f2f16def00bcd57b6c860490736136e62ba [diff] |
Turn some TabMenulModelBrowserTest tests into unit tests Two tests in TabMenulModelBrowserTest only required a Browser object in order to access the Profile and a MenuModelDelegate, both of which didn't have logic relevant to the test. This CL moves these tests into a new unittest file, and replaces the Browser dependency with a TestingProfile and a fake delegate. Why?: These two tests require `PreventTabFeatureInitialization` in order to work properly, since they manually constructs a tabstrip model. This prevented enabling the PageActionsMigration feature since other parts of browser and TabHelpers logic depend on it, which caused other browser-dependent tests in TabMenulModelBrowserTest to fail. Change-Id: I506bbd58081e765763f30dcdde3bc4f3efc9c004 Bug: 417177719 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6540666 Reviewed-by: Erik Chen <erikchen@chromium.org> Commit-Queue: Kaan Alsan <alsan@chromium.org> Reviewed-by: Darryl James <dljames@chromium.org> Cr-Commit-Position: refs/heads/main@{#1460043}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.