From bdae522256380084e11e29a4558a612ff9781b35 Mon Sep 17 00:00:00 2001 From: shiqian Date: Mon, 30 Jun 2008 18:57:36 +0000 Subject: [PATCH] Edited wiki page through web user interface. --- wiki/GoogleTestPrimer.wiki | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wiki/GoogleTestPrimer.wiki b/wiki/GoogleTestPrimer.wiki index b7a0c301..f53bfafe 100644 --- a/wiki/GoogleTestPrimer.wiki +++ b/wiki/GoogleTestPrimer.wiki @@ -424,18 +424,18 @@ TEST_F(FooTest, DoesXyz) { } // namespace int main(int argc, char **argv) { - testing::ParseGTestFlags(&argc, argv); + testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } }}} -The `testing::ParseGTestFlags()` function parses the command line for Google +The `testing::InitGoogleTest()` function parses the command line for Google Test flags, and removes all recognized flags. This allows the user to control a test program's behavior via various flags, which we'll cover in GTestAdvanced. You must call this function before calling `RUN_ALL_TESTS()`, or the flags won't be properly initialized. -On Windows, `ParseGTestFlags()` also works with wide strings, so it can be used +On Windows, `InitGoogleTest()` also works with wide strings, so it can be used in programs compiled in `UNICODE` mode as well. == Where to Go from Here ==