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 .
This commit is contained in:
Frank Barchard 2015-10-19 16:30:41 -07:00
parent 7e936044d1
commit e6a54f223a
3 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,6 @@
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 1514
Version: 1515
License: BSD
License File: LICENSE

View File

@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 1514
#define LIBYUV_VERSION 1515
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT

View File

@ -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();
}