From e6a54f223a01bca6489139c211b2905e1deaaacf Mon Sep 17 00:00:00 2001 From: Frank Barchard Date: Mon, 19 Oct 2015 16:30:41 -0700 Subject: Call AllowCommandLineReparsing in unit tests Allows us to ignore flags passed on to us by Chromium build bots without having to explicitly disable them. (Thanks pbos!) TESTED=webrtc ran modules_unittests with a bogus flag did not result in an error. R=kjellander@chromium.org BUG=libyuv:507 Review URL: https://codereview.chromium.org/1417573002 . --- unit_test/unit_test.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'unit_test/unit_test.cc') diff --git a/unit_test/unit_test.cc b/unit_test/unit_test.cc index e053a413..594dd334 100644 --- a/unit_test/unit_test.cc +++ b/unit_test/unit_test.cc @@ -304,6 +304,9 @@ LibYUVBaseTest::LibYUVBaseTest() : int main(int argc, char** argv) { ::testing::InitGoogleTest(&argc, argv); + // AllowCommandLineParsing allows us to ignore flags passed on to us by + // Chromium build bots without having to explicitly disable them. + google::AllowCommandLineReparsing(); google::ParseCommandLineFlags(&argc, &argv, true); return RUN_ALL_TESTS(); } -- cgit v1.2.3