MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / Init

Method Init

test/common/gtest/gtest.cpp:2062–2071  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2060}
2061
2062void 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.

Callers

nothing calls this directly

Tested by

no test coverage detected