|
CHROMA
|
Public Types | |
| enum | InterceptMode { INTERCEPT_ONLY_CURRENT_THREAD , INTERCEPT_ALL_THREADS } |
Public Member Functions | |
| ScopedFakeTestPartResultReporter (TestPartResultArray *result) | |
| ScopedFakeTestPartResultReporter (InterceptMode intercept_mode, TestPartResultArray *result) | |
| virtual | ~ScopedFakeTestPartResultReporter () |
| virtual void | ReportTestPartResult (const TestPartResult &result) |
Public Member Functions inherited from testing::TestPartResultReporterInterface | |
| virtual | ~TestPartResultReporterInterface () |
Private Member Functions | |
| void | Init () |
| GTEST_DISALLOW_COPY_AND_ASSIGN_ (ScopedFakeTestPartResultReporter) | |
Private Attributes | |
| const InterceptMode | intercept_mode_ |
| TestPartResultReporterInterface * | old_reporter_ |
| TestPartResultArray *const | result_ |
Definition at line 124 of file gtest-all.cc.
| Enumerator | |
|---|---|
| INTERCEPT_ONLY_CURRENT_THREAD | |
| INTERCEPT_ALL_THREADS | |
Definition at line 128 of file gtest-all.cc.
|
explicit |
Definition at line 2025 of file gtest-all.cc.
References Init().
| testing::ScopedFakeTestPartResultReporter::ScopedFakeTestPartResultReporter | ( | InterceptMode | intercept_mode, |
| TestPartResultArray * | result | ||
| ) |
Definition at line 2035 of file gtest-all.cc.
References Init().
|
virtual |
|
private |
|
private |
Definition at line 2042 of file gtest-all.cc.
References testing::internal::UnitTestImpl::GetGlobalTestPartResultReporter(), testing::internal::UnitTestImpl::GetTestPartResultReporterForCurrentThread(), testing::internal::GetUnitTestImpl(), INTERCEPT_ALL_THREADS, intercept_mode_, old_reporter_, testing::internal::UnitTestImpl::SetGlobalTestPartResultReporter(), and testing::internal::UnitTestImpl::SetTestPartResultReporterForCurrentThread().
Referenced by ScopedFakeTestPartResultReporter().
|
virtual |
Implements testing::TestPartResultReporterInterface.
Definition at line 2066 of file gtest-all.cc.
References testing::TestPartResultArray::Append(), and result_.
|
private |
Definition at line 155 of file gtest-all.cc.
Referenced by Init(), and ~ScopedFakeTestPartResultReporter().
|
private |
Definition at line 156 of file gtest-all.cc.
Referenced by Init(), and ~ScopedFakeTestPartResultReporter().
|
private |
Definition at line 157 of file gtest-all.cc.
Referenced by ReportTestPartResult().