The d'tor restores the test part result reporter used by Google Test before.
| 2099 | // The d'tor restores the test part result reporter used by Google Test |
| 2100 | // before. |
| 2101 | ScopedFakeTestPartResultReporter::~ScopedFakeTestPartResultReporter() { |
| 2102 | internal::UnitTestImpl* const impl = internal::GetUnitTestImpl(); |
| 2103 | if (intercept_mode_ == INTERCEPT_ALL_THREADS) { |
| 2104 | impl->SetGlobalTestPartResultReporter(old_reporter_); |
| 2105 | } else { |
| 2106 | impl->SetTestPartResultReporterForCurrentThread(old_reporter_); |
| 2107 | } |
| 2108 | } |
| 2109 | |
| 2110 | // Increments the test part result count and remembers the result. |
| 2111 | // This method is from the TestPartResultReporterInterface interface. |
nothing calls this directly
no test coverage detected