Orxonox  0.0.5 Codename: Arcturus
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
testing::internal::TypedExpectation< F > Class Template Reference

#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/external/gmock/include/gmock/gmock-spec-builders.h>

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

Public Types

typedef Function< F >::ArgumentMatcherTuple ArgumentMatcherTuple
 
typedef Function< F >::ArgumentTuple ArgumentTuple
 
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 ()
 
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)
 
const Matcher< const ArgumentTuple & > & extra_matcher () const
 
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)
 
const ArgumentMatcherTuplematchers () const
 
virtual void MaybeDescribeExtraMatcherTo (::std::ostream *os)
 
const Action< F > & repeated_action () const
 
TypedExpectationRetiresOnSaturation ()
 
TypedExpectationTimes (const Cardinality &a_cardinality)
 
TypedExpectationTimes (int n)
 
TypedExpectationWillOnce (const Action< F > &action)
 
TypedExpectationWillRepeatedly (const Action< F > &action)
 
TypedExpectationWith (const Matcher< const ArgumentTuple & > &m)
 
- Public Member Functions inherited from testing::internal::ExpectationBase
 ExpectationBase (const char *file, int line, const string &source_text)
 
virtual ~ExpectationBase ()
 
const Cardinalitycardinality () const
 
void DescribeCallCountTo (::std::ostream *os) const
 
void DescribeLocationTo (::std::ostream *os) const
 
const char * file () const
 
int line () const
 
const char * source_text () const
 

Private Member Functions

void ExplainMatchResultTo (const ArgumentTuple &args,::std::ostream *os) const
 
const Action< F > * GetActionForArguments (const FunctionMockerBase< F > *mocker, const ArgumentTuple &args,::std::ostream *what,::std::ostream *why)
 
const Action< F > & GetCurrentAction (const FunctionMockerBase< F > *mocker, const ArgumentTuple &args) const
 
virtual Expectation GetHandle ()
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (TypedExpectation)
 
bool Matches (const ArgumentTuple &args) const
 
bool ShouldHandleArguments (const ArgumentTuple &args) const
 

Private Attributes

Matcher< const ArgumentTuple & > extra_matcher_
 
ArgumentMatcherTuple matchers_
 
FunctionMockerBase< F > *const owner_
 
Action< F > repeated_action_
 

Friends

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
}
 
typedef std::vector< const void * > UntypedActions
 
- Protected Member Functions inherited from testing::internal::ExpectationBase
bool AllPrerequisitesAreSatisfied () const
 
void AssertSpecProperty (bool property, const string &failure_message) const
 
int call_count () const
 
bool cardinality_specified () const
 
void CheckActionCountIfNotDone () const
 
void ExpectSpecProperty (bool property, const string &failure_message) const
 
void FindUnsatisfiedPrerequisites (ExpectationSet *result) const
 
 GTEST_DISALLOW_ASSIGN_ (ExpectationBase)
 
void IncrementCallCount ()
 
bool is_retired () const
 
bool IsOverSaturated () const
 
bool IsSatisfied () const
 
bool IsSaturated () const
 
void Retire ()
 
void RetireAllPreRequisites ()
 
void set_cardinality (const Cardinality &a_cardinality)
 
void SpecifyCardinality (const Cardinality &cardinality)
 
void UntypedTimes (const Cardinality &a_cardinality)
 
- Protected Attributes inherited from testing::internal::ExpectationBase
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_
 

Member Typedef Documentation

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

Constructor & Destructor Documentation

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
template<typename F>
virtual testing::internal::TypedExpectation< F >::~TypedExpectation ( )
inlinevirtual

Member Function Documentation

template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::After ( const ExpectationSet s)
inline
template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::After ( const ExpectationSet s1,
const ExpectationSet s2 
)
inline
template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::After ( const ExpectationSet s1,
const ExpectationSet s2,
const ExpectationSet s3 
)
inline
template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::After ( const ExpectationSet s1,
const ExpectationSet s2,
const ExpectationSet s3,
const ExpectationSet s4 
)
inline
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
template<typename F>
void testing::internal::TypedExpectation< F >::ExplainMatchResultTo ( const ArgumentTuple args,
::std::ostream *  os 
) const
inlineprivate
template<typename F>
const Matcher<const ArgumentTuple&>& testing::internal::TypedExpectation< F >::extra_matcher ( ) const
inline
template<typename F>
const Action<F>* testing::internal::TypedExpectation< F >::GetActionForArguments ( const FunctionMockerBase< F > *  mocker,
const ArgumentTuple args,
::std::ostream *  what,
::std::ostream *  why 
)
inlineprivate
template<typename F>
const Action<F>& testing::internal::TypedExpectation< F >::GetCurrentAction ( const FunctionMockerBase< F > *  mocker,
const ArgumentTuple args 
) const
inlineprivate
template<typename F>
virtual Expectation testing::internal::TypedExpectation< F >::GetHandle ( )
inlineprivatevirtual
template<typename F>
testing::internal::TypedExpectation< F >::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( TypedExpectation< F >  )
private
template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::InSequence ( const Sequence s)
inline
template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::InSequence ( const Sequence s1,
const Sequence s2 
)
inline
template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::InSequence ( const Sequence s1,
const Sequence s2,
const Sequence s3 
)
inline
template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::InSequence ( const Sequence s1,
const Sequence s2,
const Sequence s3,
const Sequence s4 
)
inline
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
template<typename F>
const ArgumentMatcherTuple& testing::internal::TypedExpectation< F >::matchers ( ) const
inline
template<typename F>
bool testing::internal::TypedExpectation< F >::Matches ( const ArgumentTuple args) const
inlineprivate
template<typename F>
virtual void testing::internal::TypedExpectation< F >::MaybeDescribeExtraMatcherTo ( ::std::ostream *  os)
inlinevirtual
template<typename F>
const Action<F>& testing::internal::TypedExpectation< F >::repeated_action ( ) const
inline
template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::RetiresOnSaturation ( )
inline
template<typename F>
bool testing::internal::TypedExpectation< F >::ShouldHandleArguments ( const ArgumentTuple args) const
inlineprivate
template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::Times ( const Cardinality a_cardinality)
inline
template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::Times ( int  n)
inline
template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::WillOnce ( const Action< F > &  action)
inline
template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::WillRepeatedly ( const Action< F > &  action)
inline
template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::With ( const Matcher< const ArgumentTuple & > &  m)
inline

Friends And Related Function Documentation

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

Member Data Documentation

template<typename F>
Matcher<const ArgumentTuple&> testing::internal::TypedExpectation< F >::extra_matcher_
private
template<typename F>
ArgumentMatcherTuple testing::internal::TypedExpectation< F >::matchers_
private
template<typename F>
FunctionMockerBase<F>* const testing::internal::TypedExpectation< F >::owner_
private
template<typename F>
Action<F> testing::internal::TypedExpectation< F >::repeated_action_
private

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