AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
testing::internal::ExpectationBase Class Referenceabstract

#include <gmock-spec-builders.h>

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

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
 

Protected Types

enum  Clause {
  kNone, kWith, kTimes, kInSequence,
  kAfter, kWillOnce, kWillRepeatedly, kRetiresOnSaturation
}
 
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)
 

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_
 

Member Typedef Documentation

◆ UntypedActions

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

Member Enumeration Documentation

◆ Clause

Enumerator
kNone 
kWith 
kTimes 
kInSequence 
kAfter 
kWillOnce 
kWillRepeatedly 
kRetiresOnSaturation 

Constructor & Destructor Documentation

◆ ExpectationBase()

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

◆ ~ExpectationBase()

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

Member Function Documentation

◆ AllPrerequisitesAreSatisfied()

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

◆ AssertSpecProperty()

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

◆ call_count()

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

◆ cardinality()

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

◆ cardinality_specified()

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

◆ CheckActionCountIfNotDone()

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

◆ DescribeCallCountTo()

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

◆ DescribeLocationTo()

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

◆ ExpectSpecProperty()

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

◆ file()

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

◆ FindUnsatisfiedPrerequisites()

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

◆ GetHandle()

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

◆ GTEST_DISALLOW_ASSIGN_()

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

◆ IncrementCallCount()

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

◆ is_retired()

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

◆ IsOverSaturated()

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

◆ IsSatisfied()

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

◆ IsSaturated()

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

◆ line()

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

◆ MaybeDescribeExtraMatcherTo()

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

◆ Retire()

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

◆ RetireAllPreRequisites()

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

◆ set_cardinality()

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

◆ source_text()

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

◆ SpecifyCardinality()

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

◆ UntypedTimes()

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

Member Data Documentation

◆ action_count_checked_

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

◆ 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_

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

◆ 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

◆ retires_on_saturation_

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

◆ source_text_

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

◆ untyped_actions_

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

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

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0