Simplify CommandLineFlags, don't allow .Remove on classes
This is part 1 of 3(?). The end goal is make CommandLineFlags work for batched tests. Part 1 (this CL) gets rid of ordering concerns between class/method/field level flags by only allowing the test methods themselves to remove flags. We only had one existing case of wanting to do this, and it was actually a no-op. Part 2 will split out performing class-level CommandLineFlags parsing, and method-level CommandLine parsing. Part 3 will remove the reset() when applying CommandLineFlags modifications, and have CommandLineFlags undo the changes it makes for the test/class when the test/class finishes running. Bug: 989569 Change-Id: Icc2d3c9afca13febf55cc0e5dbaeff882ca2e9b7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2216288Reviewed-by:Yaron Friedman <yfriedman@chromium.org> Commit-Queue: Michael Thiessen <mthiesse@chromium.org> Cr-Commit-Position: refs/heads/master@{#772722}
Showing
Please register or sign in to comment