0
Files
src/apps
David Bertoni c86e2842a5 [Extensions] Ensure File API testing values are reset to defaults.
File API tests that use global variables to invoke certain behaviors
for the file chooser were not always cleaning up those variables,
or they would clean them up too late, leading to flakes with
use-after-free or unexpected values being set.

This CL move these setting these variables into RAII-style objects
that set them to the desired values, then reset them on destruction.


Bug: 1199424
Change-Id: I8c049439a6d438f915623b4cf85ee1dbbc9f4f55
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2845093
Reviewed-by: Trent Apted <tapted@chromium.org>
Reviewed-by: Devlin <rdevlin.cronin@chromium.org>
Commit-Queue: David Bertoni <dbertoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#893960}
2021-06-18 21:38:09 +00:00
..