Add support for field trials in peerconnection_client|server
Bug: webrtc:9935 Change-Id: Icb96123c5feb9dee309734d2a8ba88e23a467bef Reviewed-on: https://webrtc-review.googlesource.com/c/108301 Commit-Queue: Björn Terelius <terelius@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25431}
This commit is contained in:
committed by
Commit Bot
parent
9a0662ac7e
commit
3e67676fa6
@ -17,6 +17,8 @@
|
||||
|
||||
#include "rtc_base/ssladapter.h"
|
||||
#include "rtc_base/thread.h"
|
||||
#include "system_wrappers/include/field_trial.h"
|
||||
#include "test/field_trial.h"
|
||||
|
||||
class CustomSocketServer : public rtc::PhysicalSocketServer {
|
||||
public:
|
||||
@ -75,6 +77,11 @@ int main(int argc, char* argv[]) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
webrtc::test::ValidateFieldTrialsStringOrDie(FLAG_force_fieldtrials);
|
||||
// InitFieldTrialsFromString stores the char*, so the char array must outlive
|
||||
// the application.
|
||||
webrtc::field_trial::InitFieldTrialsFromString(FLAG_force_fieldtrials);
|
||||
|
||||
// Abort if the user specifies a port that is outside the allowed
|
||||
// range [1, 65535].
|
||||
if ((FLAG_port < 1) || (FLAG_port > 65535)) {
|
||||
|
||||
Reference in New Issue
Block a user