| 5279 | } |
| 5280 | |
| 5281 | UnitTestImpl::~UnitTestImpl() { |
| 5282 | // Deletes every TestCase. |
| 5283 | ForEach(test_cases_, internal::Delete<TestCase>); |
| 5284 | |
| 5285 | // Deletes every Environment. |
| 5286 | ForEach(environments_, internal::Delete<Environment>); |
| 5287 | |
| 5288 | delete os_stack_trace_getter_; |
| 5289 | } |
| 5290 | |
| 5291 | #if GTEST_HAS_DEATH_TEST |
| 5292 | // Disables event forwarding if the control is currently in a death test |