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

#include <JETSCAPE/blob/main/external_packages/googletest/googlemock/include/gmock/gmock-spec-builders.h>

+ Inheritance diagram for testing::internal::ExpectationBase:
+ Collaboration diagram for testing::internal::ExpectationBase:

Public Member Functions

 ExpectationBase (const char *file, int line, const string &source_text)
 
virtual ~ExpectationBase ()
 
const char * file () const
 
int line () const
 
const char * source_text () const
 
const Cardinalitycardinality () const
 
void DescribeLocationTo (::std::ostream *os) const
 
void DescribeCallCountTo (::std::ostream *os) const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
virtual void MaybeDescribeExtraMatcherTo (::std::ostream *os)=0
 

Protected Types

enum  Clause {
  kNone, kWith, kTimes, kInSequence,
  kAfter, kWillOnce, kWillRepeatedly, kRetiresOnSaturation
}
 
typedef std::vector< const void * > UntypedActions
 

Protected Member Functions

virtual Expectation GetHandle ()=0
 
void AssertSpecProperty (bool property, const string &failure_message) const
 
void ExpectSpecProperty (bool property, const string &failure_message) const
 
void SpecifyCardinality (const Cardinality &cardinality)
 
bool cardinality_specified () const
 
void set_cardinality (const Cardinality &a_cardinality)
 
void RetireAllPreRequisites () GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
bool is_retired () const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
void Retire () GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
bool IsSatisfied () const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
bool IsSaturated () const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
bool IsOverSaturated () const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
bool AllPrerequisitesAreSatisfied () const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
void FindUnsatisfiedPrerequisites (ExpectationSet *result) const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
int call_count () const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
void IncrementCallCount () GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
void CheckActionCountIfNotDone () const GTEST_LOCK_EXCLUDED_(mutex_)
 
void UntypedTimes (const Cardinality &a_cardinality)
 
 GTEST_DISALLOW_ASSIGN_ (ExpectationBase)
 

Protected Attributes

const char * file_
 
int line_
 
const string source_text_
 
bool cardinality_specified_
 
Cardinality cardinality_
 
ExpectationSet immediate_prerequisites_
 
int call_count_
 
bool retired_
 
UntypedActions untyped_actions_
 
bool extra_matcher_specified_
 
bool repeated_action_specified_
 
bool retires_on_saturation_
 
Clause last_clause_
 
bool action_count_checked_
 
Mutex mutex_
 

Friends

class ::testing::Expectation
 
class UntypedFunctionMockerBase
 
class ::testing::Sequence
 
class ::testing::internal::ExpectationTester
 
template<typename Function >
class TypedExpectation
 

Detailed Description

Definition at line 690 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 690 of file gmock-spec-builders.h

Member Typedef Documentation

typedef std::vector<const void*> testing::internal::ExpectationBase::UntypedActions
protected

Definition at line 734 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 734 of file gmock-spec-builders.h

Member Enumeration Documentation

Enumerator:
kNone 
kWith 
kTimes 
kInSequence 
kAfter 
kWillOnce 
kWillRepeatedly 
kRetiresOnSaturation 

Definition at line 722 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 722 of file gmock-spec-builders.h

Constructor & Destructor Documentation

testing::internal::ExpectationBase::ExpectationBase ( const char *  file,
int  line,
const string source_text 
)

Definition at line 68 of file gmock-spec-builders.cc.

View newest version in sPHENIX GitHub at line 68 of file gmock-spec-builders.cc

testing::internal::ExpectationBase::~ExpectationBase ( )
virtual

Definition at line 85 of file gmock-spec-builders.cc.

View newest version in sPHENIX GitHub at line 85 of file gmock-spec-builders.cc

Member Function Documentation

bool testing::internal::ExpectationBase::AllPrerequisitesAreSatisfied ( ) const
protected

Definition at line 115 of file gmock-spec-builders.cc.

View newest version in sPHENIX GitHub at line 115 of file gmock-spec-builders.cc

References testing::ExpectationSet::begin(), testing::ExpectationSet::end(), immediate_prerequisites_, and it.

+ Here is the call graph for this function:

void testing::internal::ExpectationBase::AssertSpecProperty ( bool  property,
const string failure_message 
) const
inlineprotected

Definition at line 741 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 741 of file gmock-spec-builders.h

References testing::internal::Assert().

+ Here is the call graph for this function:

int testing::internal::ExpectationBase::call_count ( ) const
inlineprotected

Definition at line 815 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 815 of file gmock-spec-builders.h

const Cardinality& testing::internal::ExpectationBase::cardinality ( ) const
inline

Definition at line 702 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 702 of file gmock-spec-builders.h

Referenced by CheckActionCountIfNotDone().

+ Here is the caller graph for this function:

bool testing::internal::ExpectationBase::cardinality_specified ( ) const
inlineprotected

Definition at line 756 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 756 of file gmock-spec-builders.h

void testing::internal::ExpectationBase::CheckActionCountIfNotDone ( ) const
protected

Definition at line 173 of file gmock-spec-builders.cc.

View newest version in sPHENIX GitHub at line 173 of file gmock-spec-builders.cc

References action_count_checked_, cardinality(), cardinality_specified_, testing::Cardinality::ConservativeLowerBound(), testing::Cardinality::ConservativeUpperBound(), DescribeLocationTo(), testing::Cardinality::DescribeTo(), testing::internal::kWarning, testing::internal::Log(), repeated_action_specified_, source_text(), and untyped_actions_.

+ Here is the call graph for this function:

void testing::internal::ExpectationBase::DescribeCallCountTo ( ::std::ostream *  os) const

Definition at line 150 of file gmock-spec-builders.cc.

View newest version in sPHENIX GitHub at line 150 of file gmock-spec-builders.cc

References testing::Cardinality::DescribeActualCallCountTo(), and os.

Referenced by testing::internal::FunctionMockerBase< R(A1, A2)>::PrintTriedExpectationsLocked(), and testing::internal::UntypedFunctionMockerBase::VerifyAndClearExpectationsLocked().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void testing::internal::ExpectationBase::DescribeLocationTo ( ::std::ostream *  os) const
inline

Definition at line 705 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 705 of file gmock-spec-builders.h

References file, testing::internal::FormatFileLocation(), and line.

Referenced by CheckActionCountIfNotDone(), testing::internal::FunctionMockerBase< R(A1, A2)>::PrintTriedExpectationsLocked(), and testing::internal::UntypedFunctionMockerBase::UntypedInvokeWith().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void testing::internal::ExpectationBase::ExpectSpecProperty ( bool  property,
const string failure_message 
) const
inlineprotected

Definition at line 746 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 746 of file gmock-spec-builders.h

References testing::internal::Expect().

Referenced by UntypedTimes().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const char* testing::internal::ExpectationBase::file ( ) const
inline

Definition at line 698 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 698 of file gmock-spec-builders.h

Referenced by conftest.RootHashAssertionError::__init__(), testing::internal::UntypedFunctionMockerBase::UntypedInvokeWith(), and testing::internal::UntypedFunctionMockerBase::VerifyAndClearExpectationsLocked().

+ Here is the caller graph for this function:

void testing::internal::ExpectationBase::FindUnsatisfiedPrerequisites ( ExpectationSet result) const
protected

Definition at line 128 of file gmock-spec-builders.cc.

View newest version in sPHENIX GitHub at line 128 of file gmock-spec-builders.cc

References it.

virtual Expectation testing::internal::ExpectationBase::GetHandle ( )
protectedpure virtual
testing::internal::ExpectationBase::GTEST_DISALLOW_ASSIGN_ ( ExpectationBase  )
protected
void testing::internal::ExpectationBase::IncrementCallCount ( )
inlineprotected

Definition at line 822 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 822 of file gmock-spec-builders.h

bool testing::internal::ExpectationBase::is_retired ( ) const
inlineprotected

Definition at line 772 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 772 of file gmock-spec-builders.h

Referenced by RetireAllPreRequisites().

+ Here is the caller graph for this function:

bool testing::internal::ExpectationBase::IsOverSaturated ( ) const
inlineprotected

Definition at line 800 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 800 of file gmock-spec-builders.h

Referenced by testing::internal::UntypedFunctionMockerBase::VerifyAndClearExpectationsLocked().

+ Here is the caller graph for this function:

bool testing::internal::ExpectationBase::IsSatisfied ( ) const
inlineprotected

Definition at line 786 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 786 of file gmock-spec-builders.h

Referenced by testing::internal::UntypedFunctionMockerBase::VerifyAndClearExpectationsLocked().

+ Here is the caller graph for this function:

bool testing::internal::ExpectationBase::IsSaturated ( ) const
inlineprotected

Definition at line 793 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 793 of file gmock-spec-builders.h

Referenced by testing::internal::FunctionMockerBase< R(A1, A2)>::UntypedFindMatchingExpectation().

+ Here is the caller graph for this function:

int testing::internal::ExpectationBase::line ( ) const
inline

Definition at line 699 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 699 of file gmock-spec-builders.h

Referenced by item.Item::__eq__(), item.Item::__hash__(), testing::internal::UntypedFunctionMockerBase::UntypedInvokeWith(), and testing::internal::UntypedFunctionMockerBase::VerifyAndClearExpectationsLocked().

+ Here is the caller graph for this function:

virtual void testing::internal::ExpectationBase::MaybeDescribeExtraMatcherTo ( ::std::ostream *  os)
pure virtual

Implemented in testing::internal::TypedExpectation< F >.

Referenced by testing::internal::UntypedFunctionMockerBase::VerifyAndClearExpectationsLocked().

+ Here is the caller graph for this function:

void testing::internal::ExpectationBase::Retire ( )
inlineprotected

Definition at line 779 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 779 of file gmock-spec-builders.h

Referenced by RetireAllPreRequisites().

+ Here is the caller graph for this function:

void testing::internal::ExpectationBase::RetireAllPreRequisites ( )
protected

Definition at line 95 of file gmock-spec-builders.cc.

View newest version in sPHENIX GitHub at line 95 of file gmock-spec-builders.cc

References testing::ExpectationSet::begin(), testing::ExpectationSet::end(), immediate_prerequisites_, is_retired(), it, Retire(), and RetireAllPreRequisites().

Referenced by RetireAllPreRequisites().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void testing::internal::ExpectationBase::set_cardinality ( const Cardinality a_cardinality)
inlineprotected

Definition at line 759 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 759 of file gmock-spec-builders.h

const char* testing::internal::ExpectationBase::source_text ( ) const
inline

Definition at line 700 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 700 of file gmock-spec-builders.h

Referenced by CheckActionCountIfNotDone(), testing::internal::FunctionMockerBase< R(A1, A2)>::PrintTriedExpectationsLocked(), and testing::internal::UntypedFunctionMockerBase::VerifyAndClearExpectationsLocked().

+ Here is the caller graph for this function:

void testing::internal::ExpectationBase::SpecifyCardinality ( const Cardinality cardinality)
protected

Definition at line 89 of file gmock-spec-builders.cc.

View newest version in sPHENIX GitHub at line 89 of file gmock-spec-builders.cc

References cardinality_, and cardinality_specified_.

Referenced by UntypedTimes().

+ Here is the caller graph for this function:

void testing::internal::ExpectationBase::UntypedTimes ( const Cardinality a_cardinality)
protected

Definition at line 225 of file gmock-spec-builders.cc.

View newest version in sPHENIX GitHub at line 225 of file gmock-spec-builders.cc

References ExpectSpecProperty(), kTimes, last_clause_, and SpecifyCardinality().

Referenced by testing::internal::TypedExpectation< F >::Times().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class ::testing::Expectation
friend

Definition at line 719 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 719 of file gmock-spec-builders.h

friend class ::testing::internal::ExpectationTester
friend

Definition at line 836 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 836 of file gmock-spec-builders.h

friend class ::testing::Sequence
friend

Definition at line 835 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 835 of file gmock-spec-builders.h

template<typename Function >
friend class TypedExpectation
friend

Definition at line 839 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 839 of file gmock-spec-builders.h

friend class UntypedFunctionMockerBase
friend

Definition at line 720 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 720 of file gmock-spec-builders.h

Member Data Documentation

bool testing::internal::ExpectationBase::action_count_checked_
mutableprotected

Definition at line 869 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 869 of file gmock-spec-builders.h

Referenced by CheckActionCountIfNotDone().

int testing::internal::ExpectationBase::call_count_
protected

Definition at line 862 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 862 of file gmock-spec-builders.h

Referenced by testing::internal::ExpectationTester::SetCallCount().

Cardinality testing::internal::ExpectationBase::cardinality_
protected

Definition at line 851 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 851 of file gmock-spec-builders.h

Referenced by SpecifyCardinality().

bool testing::internal::ExpectationBase::cardinality_specified_
protected

Definition at line 850 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 850 of file gmock-spec-builders.h

Referenced by CheckActionCountIfNotDone(), and SpecifyCardinality().

bool testing::internal::ExpectationBase::extra_matcher_specified_
protected

Definition at line 865 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 865 of file gmock-spec-builders.h

const char* testing::internal::ExpectationBase::file_
protected

Definition at line 846 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 846 of file gmock-spec-builders.h

ExpectationSet testing::internal::ExpectationBase::immediate_prerequisites_
protected

Definition at line 858 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 858 of file gmock-spec-builders.h

Referenced by testing::Sequence::AddExpectation(), AllPrerequisitesAreSatisfied(), and RetireAllPreRequisites().

Clause testing::internal::ExpectationBase::last_clause_
protected

Definition at line 868 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 868 of file gmock-spec-builders.h

Referenced by UntypedTimes().

int testing::internal::ExpectationBase::line_
protected

Definition at line 847 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 847 of file gmock-spec-builders.h

Mutex testing::internal::ExpectationBase::mutex_
mutableprotected

Definition at line 870 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 870 of file gmock-spec-builders.h

bool testing::internal::ExpectationBase::repeated_action_specified_
protected

Definition at line 866 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 866 of file gmock-spec-builders.h

Referenced by CheckActionCountIfNotDone().

bool testing::internal::ExpectationBase::retired_
protected

Definition at line 863 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 863 of file gmock-spec-builders.h

bool testing::internal::ExpectationBase::retires_on_saturation_
protected

Definition at line 867 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 867 of file gmock-spec-builders.h

const string testing::internal::ExpectationBase::source_text_
protected

Definition at line 848 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 848 of file gmock-spec-builders.h

UntypedActions testing::internal::ExpectationBase::untyped_actions_
protected

Definition at line 864 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 864 of file gmock-spec-builders.h

Referenced by CheckActionCountIfNotDone().


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