GNU Radio's DSD Package
testing::internal::TypedExpectation< F > Class Template Reference

#include <gmock-spec-builders.h>

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

Public Types

typedef Function< F >::ArgumentTuple ArgumentTuple
typedef Function< F >::ArgumentMatcherTuple ArgumentMatcherTuple
typedef Function< F >::Result Result
typedef Function< F >::ArgumentTuple ArgumentTuple
typedef Function< F >::ArgumentMatcherTuple ArgumentMatcherTuple
typedef Function< F >::Result Result

Public Member Functions

 TypedExpectation (FunctionMockerBase< F > *owner, const char *a_file, int a_line, const string &a_source_text, const ArgumentMatcherTuple &m)
virtual ~TypedExpectation ()
TypedExpectationWith (const Matcher< const ArgumentTuple & > &m)
TypedExpectationTimes (const Cardinality &a_cardinality)
TypedExpectationTimes (int n)
TypedExpectationInSequence (const Sequence &s)
TypedExpectationInSequence (const Sequence &s1, const Sequence &s2)
TypedExpectationInSequence (const Sequence &s1, const Sequence &s2, const Sequence &s3)
TypedExpectationInSequence (const Sequence &s1, const Sequence &s2, const Sequence &s3, const Sequence &s4)
TypedExpectationInSequence (const Sequence &s1, const Sequence &s2, const Sequence &s3, const Sequence &s4, const Sequence &s5)
TypedExpectationAfter (const ExpectationSet &s)
TypedExpectationAfter (const ExpectationSet &s1, const ExpectationSet &s2)
TypedExpectationAfter (const ExpectationSet &s1, const ExpectationSet &s2, const ExpectationSet &s3)
TypedExpectationAfter (const ExpectationSet &s1, const ExpectationSet &s2, const ExpectationSet &s3, const ExpectationSet &s4)
TypedExpectationAfter (const ExpectationSet &s1, const ExpectationSet &s2, const ExpectationSet &s3, const ExpectationSet &s4, const ExpectationSet &s5)
TypedExpectationWillOnce (const Action< F > &action)
TypedExpectationWillRepeatedly (const Action< F > &action)
TypedExpectationRetiresOnSaturation ()
const ArgumentMatcherTuplematchers () const
const Matcher< const ArgumentTuple & > & extra_matcher () const
const Action< F > & repeated_action () const
virtual void MaybeDescribeExtraMatcherTo (::std::ostream *os)
 TypedExpectation (FunctionMockerBase< F > *owner, const char *a_file, int a_line, const string &a_source_text, const ArgumentMatcherTuple &m)
virtual ~TypedExpectation ()
TypedExpectationWith (const Matcher< const ArgumentTuple & > &m)
TypedExpectationTimes (const Cardinality &a_cardinality)
TypedExpectationTimes (int n)
TypedExpectationInSequence (const Sequence &s)
TypedExpectationInSequence (const Sequence &s1, const Sequence &s2)
TypedExpectationInSequence (const Sequence &s1, const Sequence &s2, const Sequence &s3)
TypedExpectationInSequence (const Sequence &s1, const Sequence &s2, const Sequence &s3, const Sequence &s4)
TypedExpectationInSequence (const Sequence &s1, const Sequence &s2, const Sequence &s3, const Sequence &s4, const Sequence &s5)
TypedExpectationAfter (const ExpectationSet &s)
TypedExpectationAfter (const ExpectationSet &s1, const ExpectationSet &s2)
TypedExpectationAfter (const ExpectationSet &s1, const ExpectationSet &s2, const ExpectationSet &s3)
TypedExpectationAfter (const ExpectationSet &s1, const ExpectationSet &s2, const ExpectationSet &s3, const ExpectationSet &s4)
TypedExpectationAfter (const ExpectationSet &s1, const ExpectationSet &s2, const ExpectationSet &s3, const ExpectationSet &s4, const ExpectationSet &s5)
TypedExpectationWillOnce (const Action< F > &action)
TypedExpectationWillRepeatedly (const Action< F > &action)
TypedExpectationRetiresOnSaturation ()
const ArgumentMatcherTuplematchers () const
const Matcher< const ArgumentTuple & > & extra_matcher () const
const Action< F > & repeated_action () const
virtual void MaybeDescribeExtraMatcherTo (::std::ostream *os)
Public Member Functions inherited from testing::internal::ExpectationBase
 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)
 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)

Friends

template<typename Function>
class FunctionMockerBase
template<typename Function>
class FunctionMockerBase

Additional Inherited Members

Protected Types inherited from testing::internal::ExpectationBase
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 inherited from testing::internal::ExpectationBase
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)
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 inherited from testing::internal::ExpectationBase
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_

Member Typedef Documentation

◆ ArgumentMatcherTuple [1/2]

template<typename F>
typedef Function<F>::ArgumentMatcherTuple testing::internal::TypedExpectation< F >::ArgumentMatcherTuple

◆ ArgumentMatcherTuple [2/2]

template<typename F>
typedef Function<F>::ArgumentMatcherTuple testing::internal::TypedExpectation< F >::ArgumentMatcherTuple

◆ ArgumentTuple [1/2]

template<typename F>
typedef Function<F>::ArgumentTuple testing::internal::TypedExpectation< F >::ArgumentTuple

◆ ArgumentTuple [2/2]

template<typename F>
typedef Function<F>::ArgumentTuple testing::internal::TypedExpectation< F >::ArgumentTuple

◆ Result [1/2]

template<typename F>
typedef Function<F>::Result testing::internal::TypedExpectation< F >::Result

◆ Result [2/2]

template<typename F>
typedef Function<F>::Result testing::internal::TypedExpectation< F >::Result

Constructor & Destructor Documentation

◆ TypedExpectation() [1/2]

◆ ~TypedExpectation() [1/2]

◆ TypedExpectation() [2/2]

template<typename F>
testing::internal::TypedExpectation< F >::TypedExpectation ( FunctionMockerBase< F > * owner,
const char * a_file,
int a_line,
const string & a_source_text,
const ArgumentMatcherTuple & m )
inline

◆ ~TypedExpectation() [2/2]

Member Function Documentation

◆ After() [1/10]

◆ After() [2/10]

◆ After() [3/10]

template<typename F>
TypedExpectation & testing::internal::TypedExpectation< F >::After ( const ExpectationSet & s1,
const ExpectationSet & s2 )
inline

References After(), and TypedExpectation().

◆ After() [4/10]

template<typename F>
TypedExpectation & testing::internal::TypedExpectation< F >::After ( const ExpectationSet & s1,
const ExpectationSet & s2 )
inline

References After(), and TypedExpectation().

◆ After() [5/10]

template<typename F>
TypedExpectation & testing::internal::TypedExpectation< F >::After ( const ExpectationSet & s1,
const ExpectationSet & s2,
const ExpectationSet & s3 )
inline

References After(), and TypedExpectation().

◆ After() [6/10]

template<typename F>
TypedExpectation & testing::internal::TypedExpectation< F >::After ( const ExpectationSet & s1,
const ExpectationSet & s2,
const ExpectationSet & s3 )
inline

References After(), and TypedExpectation().

◆ After() [7/10]

template<typename F>
TypedExpectation & testing::internal::TypedExpectation< F >::After ( const ExpectationSet & s1,
const ExpectationSet & s2,
const ExpectationSet & s3,
const ExpectationSet & s4 )
inline

References After(), and TypedExpectation().

◆ After() [8/10]

template<typename F>
TypedExpectation & testing::internal::TypedExpectation< F >::After ( const ExpectationSet & s1,
const ExpectationSet & s2,
const ExpectationSet & s3,
const ExpectationSet & s4 )
inline

References After(), and TypedExpectation().

◆ After() [9/10]

template<typename F>
TypedExpectation & testing::internal::TypedExpectation< F >::After ( const ExpectationSet & s1,
const ExpectationSet & s2,
const ExpectationSet & s3,
const ExpectationSet & s4,
const ExpectationSet & s5 )
inline

References After(), and TypedExpectation().

◆ After() [10/10]

template<typename F>
TypedExpectation & testing::internal::TypedExpectation< F >::After ( const ExpectationSet & s1,
const ExpectationSet & s2,
const ExpectationSet & s3,
const ExpectationSet & s4,
const ExpectationSet & s5 )
inline

References After(), and TypedExpectation().

◆ extra_matcher() [1/2]

template<typename F>
const Matcher< const ArgumentTuple & > & testing::internal::TypedExpectation< F >::extra_matcher ( ) const
inline

◆ extra_matcher() [2/2]

template<typename F>
const Matcher< const ArgumentTuple & > & testing::internal::TypedExpectation< F >::extra_matcher ( ) const
inline

◆ InSequence() [1/10]

◆ InSequence() [2/10]

◆ InSequence() [3/10]

◆ InSequence() [4/10]

◆ InSequence() [5/10]

template<typename F>
TypedExpectation & testing::internal::TypedExpectation< F >::InSequence ( const Sequence & s1,
const Sequence & s2,
const Sequence & s3 )
inline

◆ InSequence() [6/10]

template<typename F>
TypedExpectation & testing::internal::TypedExpectation< F >::InSequence ( const Sequence & s1,
const Sequence & s2,
const Sequence & s3 )
inline

◆ InSequence() [7/10]

template<typename F>
TypedExpectation & testing::internal::TypedExpectation< F >::InSequence ( const Sequence & s1,
const Sequence & s2,
const Sequence & s3,
const Sequence & s4 )
inline

◆ InSequence() [8/10]

template<typename F>
TypedExpectation & testing::internal::TypedExpectation< F >::InSequence ( const Sequence & s1,
const Sequence & s2,
const Sequence & s3,
const Sequence & s4 )
inline

◆ InSequence() [9/10]

template<typename F>
TypedExpectation & testing::internal::TypedExpectation< F >::InSequence ( const Sequence & s1,
const Sequence & s2,
const Sequence & s3,
const Sequence & s4,
const Sequence & s5 )
inline

◆ InSequence() [10/10]

template<typename F>
TypedExpectation & testing::internal::TypedExpectation< F >::InSequence ( const Sequence & s1,
const Sequence & s2,
const Sequence & s3,
const Sequence & s4,
const Sequence & s5 )
inline

◆ matchers() [1/2]

template<typename F>
const ArgumentMatcherTuple & testing::internal::TypedExpectation< F >::matchers ( ) const
inline

◆ matchers() [2/2]

template<typename F>
const ArgumentMatcherTuple & testing::internal::TypedExpectation< F >::matchers ( ) const
inline

◆ MaybeDescribeExtraMatcherTo() [1/2]

template<typename F>
virtual void testing::internal::TypedExpectation< F >::MaybeDescribeExtraMatcherTo ( ::std::ostream * os)
inlinevirtual

◆ MaybeDescribeExtraMatcherTo() [2/2]

template<typename F>
virtual void testing::internal::TypedExpectation< F >::MaybeDescribeExtraMatcherTo ( ::std::ostream * os)
inlinevirtual

◆ repeated_action() [1/2]

template<typename F>
const Action< F > & testing::internal::TypedExpectation< F >::repeated_action ( ) const
inline

◆ repeated_action() [2/2]

template<typename F>
const Action< F > & testing::internal::TypedExpectation< F >::repeated_action ( ) const
inline

◆ RetiresOnSaturation() [1/2]

◆ RetiresOnSaturation() [2/2]

◆ Times() [1/4]

template<typename F>
TypedExpectation & testing::internal::TypedExpectation< F >::Times ( const Cardinality & a_cardinality)
inline

◆ Times() [2/4]

template<typename F>
TypedExpectation & testing::internal::TypedExpectation< F >::Times ( const Cardinality & a_cardinality)
inline

◆ Times() [3/4]

template<typename F>
TypedExpectation & testing::internal::TypedExpectation< F >::Times ( int n)
inline

◆ Times() [4/4]

template<typename F>
TypedExpectation & testing::internal::TypedExpectation< F >::Times ( int n)
inline

◆ WillOnce() [1/2]

◆ WillOnce() [2/2]

◆ WillRepeatedly() [1/2]

◆ WillRepeatedly() [2/2]

◆ With() [1/2]

◆ With() [2/2]

◆ FunctionMockerBase [1/2]

template<typename F>
template<typename Function>
friend class FunctionMockerBase
friend

◆ FunctionMockerBase [2/2]

template<typename F>
template<typename Function>
class FunctionMockerBase
friend

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