Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::internal::MockSpec< F > Class Template Reference

#include <gmock-spec-builders.h>

Public Types

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

Public Member Functions

 MockSpec (internal::FunctionMockerBase< F > *function_mocker, const ArgumentMatcherTuple &matchers)
 
internal::OnCallSpec< F > & InternalDefaultActionSetAt (const char *file, int line, const char *obj, const char *call)
 
internal::TypedExpectation< F > & InternalExpectedAt (const char *file, int line, const char *obj, const char *call)
 
MockSpec< F > & operator() (const internal::WithoutMatchers &, void *const)
 

Friends

template<typename Function >
class internal::FunctionMocker
 

Detailed Description

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

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

Member Typedef Documentation

◆ ArgumentMatcherTuple

template<typename F >
internal::Function<F>::ArgumentMatcherTuple testing::internal::MockSpec< F >::ArgumentMatcherTuple

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

◆ ArgumentTuple

template<typename F >
internal::Function<F>::ArgumentTuple testing::internal::MockSpec< F >::ArgumentTuple

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

Constructor & Destructor Documentation

◆ MockSpec()

template<typename F >
testing::internal::MockSpec< F >::MockSpec ( internal::FunctionMockerBase< F > * function_mocker,
const ArgumentMatcherTuple & matchers )
inline

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

1263 : function_mocker_(function_mocker), matchers_(matchers) {}

Member Function Documentation

◆ InternalDefaultActionSetAt()

template<typename F >
internal::OnCallSpec< F > & testing::internal::MockSpec< F >::InternalDefaultActionSetAt ( const char * file,
int line,
const char * obj,
const char * call )
inline

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

1268 {
1269 LogWithLocation(internal::kInfo, file, line,
1270 std::string("ON_CALL(") + obj + ", " + call + ") invoked");
1271 return function_mocker_->AddNewOnCallSpec(file, line, matchers_);
1272 }
GTEST_API_ void LogWithLocation(testing::internal::LogSeverity severity, const char *file, int line, const std::string &message)
fc::variant call(const std::string &url, const std::string &path, const T &v)
Definition main.cpp:258
Here is the call graph for this function:

◆ InternalExpectedAt()

template<typename F >
internal::TypedExpectation< F > & testing::internal::MockSpec< F >::InternalExpectedAt ( const char * file,
int line,
const char * obj,
const char * call )
inline

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

1277 {
1278 const std::string source_text(std::string("EXPECT_CALL(") + obj + ", " +
1279 call + ")");
1280 LogWithLocation(internal::kInfo, file, line, source_text + " invoked");
1281 return function_mocker_->AddNewExpectation(
1282 file, line, source_text, matchers_);
1283 }
Here is the call graph for this function:

◆ operator()()

template<typename F >
MockSpec< F > & testing::internal::MockSpec< F >::operator() ( const internal::WithoutMatchers & ,
void * const  )
inline

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

1288 {
1289 return *this;
1290 }

Friends And Related Symbol Documentation

◆ internal::FunctionMocker

template<typename F >
template<typename Function >
friend class internal::FunctionMocker
friend

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


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