Performs initialization dependent upon flag values obtained in ParseGoogleTestFlagsOnly. Is called from InitGoogleTest after the call to ParseGoogleTestFlagsOnly. In case a user neglects to call InitGoogleTest this function is also called from RunAllTests. Since this function can be called more than once, it has to be idempotent.
| 5336 | // this function is also called from RunAllTests. Since this function can be |
| 5337 | // called more than once, it has to be idempotent. |
| 5338 | void UnitTestImpl::PostFlagParsingInit() { |
| 5339 | // Ensures that this function does not execute more than once. |
| 5340 | if (!post_flag_parse_init_performed_) { |
| 5341 | post_flag_parse_init_performed_ = true; |
| 5342 | |
| 5343 | #if GTEST_HAS_DEATH_TEST |
| 5344 | InitDeathTestSubprocessControlInfo(); |
| 5345 | SuppressTestEventsIfInSubprocess(); |
| 5346 | #endif // GTEST_HAS_DEATH_TEST |
| 5347 | |
| 5348 | // Registers parameterized tests. This makes parameterized tests |
| 5349 | // available to the UnitTest reflection API without running |
| 5350 | // RUN_ALL_TESTS. |
| 5351 | RegisterParameterizedTests(); |
| 5352 | |
| 5353 | // Configures listeners for XML output. This makes it possible for users |
| 5354 | // to shut down the default XML output before invoking RUN_ALL_TESTS. |
| 5355 | ConfigureXmlOutput(); |
| 5356 | |
| 5357 | #if GTEST_CAN_STREAM_RESULTS_ |
| 5358 | // Configures listeners for streaming test results to the specified server. |
| 5359 | ConfigureStreamingOutput(); |
| 5360 | #endif // GTEST_CAN_STREAM_RESULTS_ |
| 5361 | } |
| 5362 | } |
| 5363 | |
| 5364 | // A predicate that checks the name of a TestCase against a known |
| 5365 | // value. |
no test coverage detected