Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1244)

Unified Diff: webrtc/base/unittest_main.cc

Issue 1363573002: Wire up transport sequence number / send time callbacks to webrtc via libjingle. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add missing updated_options Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/base/socket.h ('k') | webrtc/call.h » ('j') | webrtc/call.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « webrtc/base/socket.h ('k') | webrtc/call.h » ('j') | webrtc/call.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698