| 2060 | } |
| 2061 | |
| 2062 | void ScopedFakeTestPartResultReporter::Init() { |
| 2063 | internal::UnitTestImpl* const impl = internal::GetUnitTestImpl(); |
| 2064 | if (intercept_mode_ == INTERCEPT_ALL_THREADS) { |
| 2065 | old_reporter_ = impl->GetGlobalTestPartResultReporter(); |
| 2066 | impl->SetGlobalTestPartResultReporter(this); |
| 2067 | } else { |
| 2068 | old_reporter_ = impl->GetTestPartResultReporterForCurrentThread(); |
| 2069 | impl->SetTestPartResultReporterForCurrentThread(this); |
| 2070 | } |
| 2071 | } |
| 2072 | |
| 2073 | // The d'tor restores the test part result reporter used by Google Test |
| 2074 | // before. |
nothing calls this directly
no test coverage detected