MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / Init

Method Init

rtpose_wrapper/src/gtest/gtest-all.cpp:1857–1866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1855}
1856
1857void 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.

Callers

nothing calls this directly

Tested by

no test coverage detected