GNU Radio's DSD Package
testing::internal::ExpectationBase Class Referenceabstract

#include <gmock-spec-builders.h>

Inheritance diagram for testing::internal::ExpectationBase:
testing::internal::TypedExpectation< F > testing::internal::TypedExpectation< F >

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
 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 ,
  kNone , kWith , kTimes , kInSequence ,
  kAfter , kWillOnce , kWillRepeatedly , kRetiresOnSaturation
}
enum  Clause {
  kNone , kWith , kTimes , kInSequence ,
  kAfter , kWillOnce , kWillRepeatedly , kRetiresOnSaturation ,
  kNone , kWith , kTimes , kInSequence ,
  kAfter , kWillOnce , kWillRepeatedly , kRetiresOnSaturation
}
typedef std::vector< const void * > UntypedActions
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)
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
template<typename Function>
class TypedExpectation

Member Typedef Documentation

◆ UntypedActions [1/2]

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

◆ UntypedActions [2/2]

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

Member Enumeration Documentation

◆ Clause [1/2]

Enumerator
kNone 
kWith 
kTimes 
kInSequence 
kAfter 
kWillOnce 
kWillRepeatedly 
kRetiresOnSaturation 
kNone 
kWith 
kTimes 
kInSequence 
kAfter 
kWillOnce 
kWillRepeatedly 
kRetiresOnSaturation 

◆ Clause [2/2]

Enumerator
kNone 
kWith 
kTimes 
kInSequence 
kAfter 
kWillOnce 
kWillRepeatedly 
kRetiresOnSaturation 
kNone 
kWith 
kTimes 
kInSequence 
kAfter 
kWillOnce 
kWillRepeatedly 
kRetiresOnSaturation 

Constructor & Destructor Documentation

◆ ExpectationBase() [1/2]

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

◆ ~ExpectationBase() [1/2]

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

◆ ExpectationBase() [2/2]

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

References file(), line(), and source_text().

◆ ~ExpectationBase() [2/2]

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

Member Function Documentation

◆ AllPrerequisitesAreSatisfied() [1/2]

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

◆ AllPrerequisitesAreSatisfied() [2/2]

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

◆ AssertSpecProperty() [1/2]

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

◆ AssertSpecProperty() [2/2]

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

◆ call_count() [1/2]

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

◆ call_count() [2/2]

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

◆ cardinality() [1/2]

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

◆ cardinality() [2/2]

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

References cardinality_.

◆ cardinality_specified() [1/2]

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

◆ cardinality_specified() [2/2]

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

◆ CheckActionCountIfNotDone() [1/2]

◆ CheckActionCountIfNotDone() [2/2]

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

◆ DescribeCallCountTo() [1/2]

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

◆ DescribeCallCountTo() [2/2]

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

◆ DescribeLocationTo() [1/2]

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

◆ DescribeLocationTo() [2/2]

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

◆ ExpectSpecProperty() [1/2]

◆ ExpectSpecProperty() [2/2]

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

◆ file() [1/2]

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

References file_.

Referenced by DescribeLocationTo(), and ExpectationBase().

◆ file() [2/2]

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

References file_.

◆ FindUnsatisfiedPrerequisites() [1/2]

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

◆ FindUnsatisfiedPrerequisites() [2/2]

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

◆ GetHandle() [1/2]

virtual Expectation testing::internal::ExpectationBase::GetHandle ( )
protectedpure virtual

◆ GetHandle() [2/2]

virtual Expectation testing::internal::ExpectationBase::GetHandle ( )
protectedpure virtual

◆ GTEST_DISALLOW_ASSIGN_() [1/2]

testing::internal::ExpectationBase::GTEST_DISALLOW_ASSIGN_ ( ExpectationBase )
protected

◆ GTEST_DISALLOW_ASSIGN_() [2/2]

testing::internal::ExpectationBase::GTEST_DISALLOW_ASSIGN_ ( ExpectationBase )
protected

◆ IncrementCallCount() [1/2]

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

◆ IncrementCallCount() [2/2]

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

◆ is_retired() [1/2]

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

◆ is_retired() [2/2]

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

◆ IsOverSaturated() [1/2]

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

◆ IsOverSaturated() [2/2]

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

◆ IsSatisfied() [1/2]

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

◆ IsSatisfied() [2/2]

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

◆ IsSaturated() [1/2]

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

◆ IsSaturated() [2/2]

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

◆ line() [1/2]

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

References line_.

Referenced by DescribeLocationTo(), and ExpectationBase().

◆ line() [2/2]

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

References line_.

◆ MaybeDescribeExtraMatcherTo() [1/2]

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

◆ MaybeDescribeExtraMatcherTo() [2/2]

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

◆ Retire() [1/2]

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

◆ Retire() [2/2]

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

◆ RetireAllPreRequisites() [1/2]

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

◆ RetireAllPreRequisites() [2/2]

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

◆ set_cardinality() [1/2]

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

◆ set_cardinality() [2/2]

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

References cardinality_.

◆ source_text() [1/2]

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

References source_text_.

Referenced by ExpectationBase().

◆ source_text() [2/2]

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

References source_text_.

◆ SpecifyCardinality() [1/2]

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

References cardinality().

◆ SpecifyCardinality() [2/2]

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

References cardinality().

◆ UntypedTimes() [1/2]

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

◆ UntypedTimes() [2/2]

◆ ::testing::Expectation

◆ ::testing::internal::ExpectationTester

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

◆ ::testing::Sequence

◆ TypedExpectation [1/2]

template<typename Function>
friend class TypedExpectation
friend

◆ TypedExpectation [2/2]

template<typename Function>
class TypedExpectation
friend

References TypedExpectation.

◆ UntypedFunctionMockerBase

UntypedFunctionMockerBase
friend

Member Data Documentation

◆ action_count_checked_

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

Referenced by UntypedTimes().

◆ call_count_

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

◆ cardinality_

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

◆ cardinality_specified_

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

◆ extra_matcher_specified_

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

◆ file_

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

◆ immediate_prerequisites_

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

◆ last_clause_

◆ line_

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

◆ mutex_

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

◆ repeated_action_specified_

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

◆ retired_

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

Referenced by is_retired(), Retire(), and UntypedTimes().

◆ retires_on_saturation_

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

◆ source_text_

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

Referenced by source_text(), and UntypedTimes().

◆ untyped_actions_


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