webrtc/rtc_tools
Bjorn Terelius edab3011fa Remove webrtc::test::InitFieldTrialsFromString(const std::string&).
This is done to solve a problem where a string literal is implicitly cast
to a temporary std::string when calling webrtc::test::InitFieldTrialsFromString
which passes a pointer to the internal representation to
webrtc::field_trial::InitFieldTrialFromString(char*). This pointer is
stored for later use, but the temporary std::string is destroyed as soon
as the function returns.

Using webrtc::field_trial::InitFieldTrialFromString(char*) instead,
avoids the implicit casts (but the caller still needs to ensure that
the char* outlives the program). The validation previously done by
webrtc::test::InitFieldTrialsFromString can now be done by manually
calling webrtc::test::ValidateFieldTrialsStringOrDie(const std::string&).

Add system_wrappers:field_trial_default as a direct dependency to
various targets to allow including the field_trials_default.h header.

Bug: webrtc:8812
Change-Id: Ib5a641ea255b1c16a8f7f35e1fe67f6c38a61da6
Reviewed-on: https://webrtc-review.googlesource.com/46141
Reviewed-by: Tommi <tommi@webrtc.org>
Commit-Queue: Oleh Prypin <oprypin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21856}
2018-02-01 19:47:41 +00:00
..
agc Move some numeric utility code from rtc_base/ to rtc_base/numerics/ 2017-11-22 11:21:47 +00:00
barcode_tools Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00
converter Normalize main(..) routines for WinUWP 2017-12-12 14:32:56 +00:00
event_log_visualizer Remove webrtc::test::InitFieldTrialsFromString(const std::string&). 2018-02-01 19:47:41 +00:00
force_mic_volume_max Normalize main(..) routines for WinUWP 2017-12-12 14:32:56 +00:00
frame_analyzer Store video_quality_loopback_test perf results in Chart JSON format. 2018-01-30 16:48:59 +00:00
frame_editing Normalize main(..) routines for WinUWP 2017-12-12 14:32:56 +00:00
loopback_test Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00
network_tester Renaming android_library android_manifest to android_manifest_for_lint. 2018-01-04 12:55:49 +00:00
psnr_ssim_analyzer Normalize main(..) routines for WinUWP 2017-12-12 14:32:56 +00:00
py_event_log_analyzer Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00
rtcbot Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00
testing Partial revert of "Update scripts to use DEPS-pinned depot_tools" 2017-10-18 13:06:58 +00:00
unpack_aecdump Move unpack_aecdump to a more public location. 2017-12-13 10:16:40 +00:00
author_line_count.sh Fix awk gensub call in author_line_count.sh script. 2017-12-06 08:16:12 +00:00
BUILD.gn Remove webrtc::test::InitFieldTrialsFromString(const std::string&). 2018-02-01 19:47:41 +00:00
class_usage.sh Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00
compare_videos.py Store video_quality_loopback_test perf results in Chart JSON format. 2018-01-30 16:48:59 +00:00
DEPS Including libyuv headers using fully qualified paths. 2017-12-11 15:51:26 +00:00
header_usage.sh header_usage.sh: Keep leading directory for grep. 2017-10-19 13:46:51 +00:00
OWNERS Expand ownership of rtc_tools. 2017-11-06 11:13:26 +00:00
sanitizers_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
simple_command_line_parser.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
simple_command_line_parser.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
simple_command_line_parser_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
video_analysis.py Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
video_analysis_test.py Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00