Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
testing::internal::ExpectationBase Class Referenceabstract

#include <gmock.h>

Inheritance diagram for testing::internal::ExpectationBase:
Inheritance graph
[legend]

Public Member Functions

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

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

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

Protected Attributes

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

Friends

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

Detailed Description

Definition at line 10063 of file fused-src/gmock/gmock.h.

Member Typedef Documentation

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

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

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

Definition at line 10110 of file fused-src/gmock/gmock.h.

Member Enumeration Documentation

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

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

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

Definition at line 10097 of file fused-src/gmock/gmock.h.

Constructor & Destructor Documentation

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

Definition at line 10518 of file gmock-gtest-all.cc.

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

Definition at line 10535 of file gmock-gtest-all.cc.

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

Member Function Documentation

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

Definition at line 10565 of file gmock-gtest-all.cc.

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

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

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

Definition at line 10117 of file fused-src/gmock/gmock.h.

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

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

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

Definition at line 10199 of file fused-src/gmock/gmock.h.

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

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

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

Definition at line 10076 of file fused-src/gmock/gmock.h.

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

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

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

Definition at line 10134 of file fused-src/gmock/gmock.h.

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

Definition at line 10623 of file gmock-gtest-all.cc.

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

Definition at line 10600 of file gmock-gtest-all.cc.

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

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

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

Definition at line 10079 of file fused-src/gmock/gmock.h.

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

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

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

Definition at line 10123 of file fused-src/gmock/gmock.h.

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

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

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

Definition at line 10072 of file fused-src/gmock/gmock.h.

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

Definition at line 10578 of file gmock-gtest-all.cc.

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

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

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

Definition at line 10207 of file fused-src/gmock/gmock.h.

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

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

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

Definition at line 10151 of file fused-src/gmock/gmock.h.

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

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

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

Definition at line 10183 of file fused-src/gmock/gmock.h.

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

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

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

Definition at line 10167 of file fused-src/gmock/gmock.h.

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

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

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

Definition at line 10175 of file fused-src/gmock/gmock.h.

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

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

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

Definition at line 10073 of file fused-src/gmock/gmock.h.

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

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

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

Definition at line 10159 of file fused-src/gmock/gmock.h.

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

Definition at line 10545 of file gmock-gtest-all.cc.

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

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

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

Definition at line 10137 of file fused-src/gmock/gmock.h.

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

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

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

Definition at line 10074 of file fused-src/gmock/gmock.h.

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

Definition at line 10539 of file gmock-gtest-all.cc.

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

Definition at line 10675 of file gmock-gtest-all.cc.

Friends And Related Function Documentation

friend class ::testing::Expectation
friend

Definition at line 10094 of file fused-src/gmock/gmock.h.

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

Definition at line 10222 of file fused-src/gmock/gmock.h.

friend class ::testing::Sequence
friend

Definition at line 10221 of file fused-src/gmock/gmock.h.

template<typename Function >
class TypedExpectation ( )
friend

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

template<typename Function >
friend class TypedExpectation
friend

Definition at line 10225 of file fused-src/gmock/gmock.h.

Definition at line 10095 of file fused-src/gmock/gmock.h.

Member Data Documentation

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

Definition at line 10255 of file fused-src/gmock/gmock.h.

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

Definition at line 10248 of file fused-src/gmock/gmock.h.

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

Definition at line 10237 of file fused-src/gmock/gmock.h.

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

Definition at line 10236 of file fused-src/gmock/gmock.h.

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

Definition at line 10251 of file fused-src/gmock/gmock.h.

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

Definition at line 10232 of file fused-src/gmock/gmock.h.

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

Definition at line 10244 of file fused-src/gmock/gmock.h.

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

Definition at line 10254 of file fused-src/gmock/gmock.h.

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

Definition at line 10233 of file fused-src/gmock/gmock.h.

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

Definition at line 10256 of file fused-src/gmock/gmock.h.

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

Definition at line 10252 of file fused-src/gmock/gmock.h.

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

Definition at line 10249 of file fused-src/gmock/gmock.h.

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

Definition at line 10253 of file fused-src/gmock/gmock.h.

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

Definition at line 10234 of file fused-src/gmock/gmock.h.

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

Definition at line 10250 of file fused-src/gmock/gmock.h.


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


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:10