webrtc/system_wrappers
Emil Lundmark 6bf20cc76a Verify field trials looked up through field_trial::FindFullName
For now, the run-time check will only be enabled if the
rtc_strict_field_trials GN arg is set.

In order to allow testing with imaginary field trial keys, two test
helpers have been added. It's a bit awkward to test these since the
field trial string is already global, hence the helpers are also
modifying global state. Tests must make sure this global state is reset
between runs. Things won't be an issue anymore when [1] has removed the
global string.

[1] https://crbug.com/webrtc/10335

Bug: webrtc:14154
Change-Id: Ida44cc817079d7177325e2228cf1f1d242b799e2
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/276269
Commit-Queue: Emil Lundmark <lndmrk@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#38447}
2022-10-20 10:46:01 +00:00
..
include Verify field trials looked up through field_trial::FindFullName 2022-10-20 10:46:01 +00:00
source Verify field trials looked up through field_trial::FindFullName 2022-10-20 10:46:01 +00:00
BUILD.gn Verify field trials looked up through field_trial::FindFullName 2022-10-20 10:46:01 +00:00
DEPS Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00
OWNERS Delete nisse@webrtc.org from OWNERS files 2022-07-28 08:47:38 +00:00