All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
testing::internal::ExpectationBase Class Referenceabstract
Inheritance diagram for testing::internal::ExpectationBase:
testing::internal::TypedExpectation< F >

Public Member Functions

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

Protected Types

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

Protected Member Functions

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