Move code for setting field trials from NetEqTestFactory to the main function in neteq_rtpplay.
It is problematic to set field trials more than once, so to avoid running into problems, this functionality has been placed in the main function of neteq_rtpplay.
Bug: webrtc:9667
Change-Id: Ib9b9990f30a1715b50889dbfc4d74787bcbe5dae
Reviewed-on: https://webrtc-review.googlesource.com/98541
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Minyue Li <minyue@webrtc.org>
Commit-Queue: Ivo Creusen <ivoc@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24673}
diff --git a/modules/audio_coding/BUILD.gn b/modules/audio_coding/BUILD.gn
index 09b9df5..ff5ae13 100644
--- a/modules/audio_coding/BUILD.gn
+++ b/modules/audio_coding/BUILD.gn
@@ -1515,7 +1515,6 @@
defines = []
deps = [
"../../rtc_base:checks",
- "../../test:field_trial",
"../../test:fileutils",
]
sources = [
@@ -1545,6 +1544,9 @@
deps = [
":neteq_test_factory",
":neteq_test_tools",
+ "../../rtc_base:rtc_base_approved",
+ "../../system_wrappers:field_trial_default",
+ "../../test:field_trial",
]
sources = [
"neteq/tools/neteq_rtpplay.cc",