Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeHealth: Add method to set fake subsystems in FakeWebAppProvider
Using an actual provider with fakes set on it means less boilerplate setting up various managers in many unit tests, and less need to manually set subsystems or make sure the right manager is used in code under test. Ideally fakes would be set by default in FakeWebAppProvider::BuildDefault but that breaks some tests so it can be done in a separate CL. This makes FakeWebAppRegistryController redundant. We should remove it in a follow-up CL so there's one correct way to do things. As a trial/example, removed WebAppRegistryController from web_app_install_finalizer_unittest.cc and web_app_translation_manager_unittest.cc Also fixed to IWYU in these classes. Bug: 973324 Change-Id: Iaafef580f434d6839712a788d1ec74e07734b7f1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3526299 Reviewed-by: Daniel Murphy <dmurph@chromium.org> Reviewed-by: Alan Cutter <alancutter@chromium.org> Commit-Queue: Glen Robertson <glenrob@chromium.org> Cr-Commit-Position: refs/heads/main@{#984678}
- Loading branch information
Glen Robertson
authored and
Chromium LUCI CQ
committed
Mar 24, 2022
1 parent
ebb8059
commit aaddfad
Showing
8 changed files
with
197 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.