Commit e6a54f22 authored by Frank Barchard's avatar Frank Barchard

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 .
parent 7e936044
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 1514
Version: 1515
License: BSD
License File: LICENSE
......
......@@ -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
......@@ -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();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment