-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Extensions] Clean up test classes in FileSystemChooseEntryFunction.
This function had a series of classes to manage setting and resetting testing options that relied on global variables and obscured what was actually happening. This CL changes this to use an explicit test struct with options that can be initialized in the test. It then uses base::AutoReset to set and reset the static pointer to the test struct. This is much cleaner and clearer than the current code. Bug: n/a Change-Id: I6311aec3fa5bb43de82549a66700a00129dbc5f0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4609708 Commit-Queue: David Bertoni <dbertoni@chromium.org> Reviewed-by: Tim <tjudkins@chromium.org> Reviewed-by: Dominick Ng <dominickn@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Auto-Submit: David Bertoni <dbertoni@chromium.org> Cr-Commit-Position: refs/heads/main@{#1159057}
- Loading branch information
David Bertoni
authored and
Chromium LUCI CQ
committed
Jun 16, 2023
1 parent
5462f89
commit e44b7e0
Showing
8 changed files
with
273 additions
and
233 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
234 changes: 161 additions & 73 deletions
234
chrome/browser/extensions/api/file_system/file_system_apitest.cc
Large diffs are not rendered by default.
Oops, something went wrong.
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.