| 2086 | } |
| 2087 | |
| 2088 | void ScopedFakeTestPartResultReporter::Init() { |
| 2089 | internal::UnitTestImpl* const impl = internal::GetUnitTestImpl(); |
| 2090 | if (intercept_mode_ == INTERCEPT_ALL_THREADS) { |
| 2091 | old_reporter_ = impl->GetGlobalTestPartResultReporter(); |
| 2092 | impl->SetGlobalTestPartResultReporter(this); |
| 2093 | } else { |
| 2094 | old_reporter_ = impl->GetTestPartResultReporterForCurrentThread(); |
| 2095 | impl->SetTestPartResultReporterForCurrentThread(this); |
| 2096 | } |
| 2097 | } |
| 2098 | |
| 2099 | // The d'tor restores the test part result reporter used by Google Test |
| 2100 | // before. |
nothing calls this directly
no test coverage detected