v8toolkit  0.0.1
Utility library for embedding V8 Javascript engine in a c++ program
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
testing::internal::OnCallSpec< F > Class Template Reference

#include <gmock-spec-builders.h>

Inheritance diagram for testing::internal::OnCallSpec< F >:
Inheritance graph
[legend]
Collaboration diagram for testing::internal::OnCallSpec< F >:
Collaboration graph
[legend]

Public Types

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

Public Member Functions

 OnCallSpec (const char *a_file, int a_line, const ArgumentMatcherTuple &matchers)
 
OnCallSpecWith (const Matcher< const ArgumentTuple & > &m)
 
OnCallSpecWillByDefault (const Action< F > &action)
 
bool Matches (const ArgumentTuple &args) const
 
const Action< F > & GetAction () const
 
const char * file () const
 
int line () const
 

Protected Types

enum  Clause { kNone, kWith, kWillByDefault }
 

Protected Member Functions

void AssertSpecProperty (bool property, const string &failure_message) const
 
void ExpectSpecProperty (bool property, const string &failure_message) const
 

Protected Attributes

const char * file_
 
int line_
 
Clause last_clause_
 

Detailed Description

template<typename F>
class testing::internal::OnCallSpec< F >

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

Member Typedef Documentation

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

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

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

Member Enumeration Documentation

Enumerator
kNone 
kWith 
kWillByDefault 

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

Constructor & Destructor Documentation

template<typename F>
testing::internal::OnCallSpec< F >::OnCallSpec ( const char *  a_file,
int  a_line,
const ArgumentMatcherTuple matchers 
)
inline

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

Member Function Documentation

template<typename F>
OnCallSpec& testing::internal::OnCallSpec< F >::With ( const Matcher< const ArgumentTuple & > &  m)
inline

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

template<typename F>
OnCallSpec& testing::internal::OnCallSpec< F >::WillByDefault ( const Action< F > &  action)
inline

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

References testing::Action< F >::IsDoDefault().

Here is the call graph for this function:

template<typename F>
bool testing::internal::OnCallSpec< F >::Matches ( const ArgumentTuple args) const
inline

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

References testing::internal::TupleMatches().

Referenced by testing::internal::FunctionMockerBase< R(A1, A2)>::FindOnCallSpec().

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename F>
const Action<F>& testing::internal::OnCallSpec< F >::GetAction ( ) const
inline

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

Referenced by testing::internal::FunctionMockerBase< R(A1, A2)>::PerformDefaultAction().

Here is the caller graph for this function:

const char* testing::internal::UntypedOnCallSpecBase::file ( ) const
inlineinherited

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

int testing::internal::UntypedOnCallSpecBase::line ( ) const
inlineinherited

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

void testing::internal::UntypedOnCallSpecBase::AssertSpecProperty ( bool  property,
const string failure_message 
) const
inlineprotectedinherited

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

References testing::internal::Assert().

Here is the call graph for this function:

void testing::internal::UntypedOnCallSpecBase::ExpectSpecProperty ( bool  property,
const string failure_message 
) const
inlineprotectedinherited

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

References testing::internal::Expect().

Here is the call graph for this function:

Member Data Documentation

const char* testing::internal::UntypedOnCallSpecBase::file_
protectedinherited

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

int testing::internal::UntypedOnCallSpecBase::line_
protectedinherited

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

Clause testing::internal::UntypedOnCallSpecBase::last_clause_
protectedinherited

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


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