| 1855 | } |
| 1856 | |
| 1857 | void ScopedFakeTestPartResultReporter::Init() { |
| 1858 | internal::UnitTestImpl* const impl = internal::GetUnitTestImpl(); |
| 1859 | if (intercept_mode_ == INTERCEPT_ALL_THREADS) { |
| 1860 | old_reporter_ = impl->GetGlobalTestPartResultReporter(); |
| 1861 | impl->SetGlobalTestPartResultReporter(this); |
| 1862 | } else { |
| 1863 | old_reporter_ = impl->GetTestPartResultReporterForCurrentThread(); |
| 1864 | impl->SetTestPartResultReporterForCurrentThread(this); |
| 1865 | } |
| 1866 | } |
| 1867 | |
| 1868 | // The d'tor restores the test part result reporter used by Google Test |
| 1869 | // before. |
nothing calls this directly
no test coverage detected