Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
testing::ScopedFakeTestPartResultReporter Class Reference

#include <JETSCAPE/blob/main/external_packages/googletest/googletest/include/gtest/gtest-spi.h>

+ Inheritance diagram for testing::ScopedFakeTestPartResultReporter:
+ Collaboration diagram for testing::ScopedFakeTestPartResultReporter:

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_
 
TestPartResultReporterInterfaceold_reporter_
 
TestPartResultArray *const result_
 

Detailed Description

Definition at line 51 of file gtest-spi.h.

View newest version in sPHENIX GitHub at line 51 of file gtest-spi.h

Member Enumeration Documentation

Enumerator:
INTERCEPT_ONLY_CURRENT_THREAD 
INTERCEPT_ALL_THREADS 

Definition at line 55 of file gtest-spi.h.

View newest version in sPHENIX GitHub at line 55 of file gtest-spi.h

Constructor & Destructor Documentation

testing::ScopedFakeTestPartResultReporter::ScopedFakeTestPartResultReporter ( TestPartResultArray result)
explicit

Definition at line 563 of file gtest.cc.

View newest version in sPHENIX GitHub at line 563 of file gtest.cc

References Init().

+ Here is the call graph for this function:

testing::ScopedFakeTestPartResultReporter::ScopedFakeTestPartResultReporter ( InterceptMode  intercept_mode,
TestPartResultArray result 
)

Definition at line 573 of file gtest.cc.

View newest version in sPHENIX GitHub at line 573 of file gtest.cc

References Init().

+ Here is the call graph for this function:

testing::ScopedFakeTestPartResultReporter::~ScopedFakeTestPartResultReporter ( )
virtual

Definition at line 593 of file gtest.cc.

View newest version in sPHENIX GitHub at line 593 of file gtest.cc

References testing::internal::GetUnitTestImpl(), INTERCEPT_ALL_THREADS, intercept_mode_, old_reporter_, testing::internal::UnitTestImpl::SetGlobalTestPartResultReporter(), and testing::internal::UnitTestImpl::SetTestPartResultReporterForCurrentThread().

+ Here is the call graph for this function:

Member Function Documentation

testing::ScopedFakeTestPartResultReporter::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( ScopedFakeTestPartResultReporter  )
private
void testing::ScopedFakeTestPartResultReporter::Init ( )
private

Definition at line 580 of file gtest.cc.

View newest version in sPHENIX GitHub at line 580 of file gtest.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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void testing::ScopedFakeTestPartResultReporter::ReportTestPartResult ( const TestPartResult result)
virtual

Implements testing::TestPartResultReporterInterface.

Definition at line 604 of file gtest.cc.

View newest version in sPHENIX GitHub at line 604 of file gtest.cc

References testing::TestPartResultArray::Append(), and result_.

+ Here is the call graph for this function:

Member Data Documentation

const InterceptMode testing::ScopedFakeTestPartResultReporter::intercept_mode_
private

Definition at line 82 of file gtest-spi.h.

View newest version in sPHENIX GitHub at line 82 of file gtest-spi.h

Referenced by Init(), and ~ScopedFakeTestPartResultReporter().

TestPartResultReporterInterface* testing::ScopedFakeTestPartResultReporter::old_reporter_
private

Definition at line 83 of file gtest-spi.h.

View newest version in sPHENIX GitHub at line 83 of file gtest-spi.h

Referenced by Init(), and ~ScopedFakeTestPartResultReporter().

TestPartResultArray* const testing::ScopedFakeTestPartResultReporter::result_
private

Definition at line 84 of file gtest-spi.h.

View newest version in sPHENIX GitHub at line 84 of file gtest-spi.h

Referenced by ReportTestPartResult().


The documentation for this class was generated from the following files: