Add a testing function to reset a FieldTrialsProvider-owned global var.
crrev.com/c/7204436 added a global variable that can be set only once.
There's a CHECK if the variable is already set when attempting to set
it. As sdefresne explained in http://crbug.com/466173466#comment1, on
iOS, globals set in one test are seen by all subsequent tests because
tests are run in the same process on that platform. I.e., subsequent
tests may hit this CHECK.
This CL resets the global variable in the TearDown() step in
FieldTrialCreatorTest.
Bug: 466173466, 467345796
Change-Id: I2b85cf46b89a1638507b8a48fc958805d7604a48
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7243193
Commit-Queue: Caitlin Fischer <caitlinfischer@google.com>
Reviewed-by: Alexei Svitkine <asvitkine@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1556376}
NOKEYCHECK=True
GitOrigin-RevId: 473e62f7bf29392bc054acf31829a3c97e88748b
2 files changed