| Index: webrtc/base/unittest_main.cc
|
| diff --git a/webrtc/base/unittest_main.cc b/webrtc/base/unittest_main.cc
|
| index e243c52e2c339fc88e93e2ffaadaba52c9d0bd8b..f952b2d54745223cc388e7ca31168ca5f54b3f1f 100644
|
| --- a/webrtc/base/unittest_main.cc
|
| +++ b/webrtc/base/unittest_main.cc
|
| @@ -19,9 +19,16 @@
|
| #include "webrtc/base/gunit.h"
|
| #include "webrtc/base/logging.h"
|
| #include "webrtc/base/ssladapter.h"
|
| +#include "webrtc/test/field_trial.h"
|
|
|
| DEFINE_bool(help, false, "prints this message");
|
| DEFINE_string(log, "", "logging options to use");
|
| +DEFINE_string(
|
| + force_fieldtrials,
|
| + "",
|
| + "Field trials control experimental feature code which can be forced. "
|
| + "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enable/"
|
| + " will assign the group Enable to field trial WebRTC-FooFeature.");
|
| #if defined(WEBRTC_WIN)
|
| DEFINE_int(crt_break_alloc, -1, "memory allocation to break on");
|
| DEFINE_bool(default_error_handlers, false,
|
| @@ -61,6 +68,8 @@ int main(int argc, char** argv) {
|
| return 0;
|
| }
|
|
|
| + webrtc::test::InitFieldTrialsFromString(FLAG_force_fieldtrials);
|
| +
|
| #if defined(WEBRTC_WIN)
|
| if (!FLAG_default_error_handlers) {
|
| // Make sure any errors don't throw dialogs hanging the test run.
|
|
|