proxygen
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
 
typedef internal::Function< F >::ArgumentTuple ArgumentTuple
 
typedef internal::Function< F >::ArgumentMatcherTuple ArgumentMatcherTuple
 
typedef internal::Function< F >::ArgumentTuple ArgumentTuple
 
typedef internal::Function< F >::ArgumentMatcherTuple ArgumentMatcherTuple
 

Public Member Functions

 MockSpec (internal::FunctionMockerBase< F > *function_mocker)
 
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 (internal::FunctionMockerBase< F > *function_mocker)
 
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 (internal::FunctionMockerBase< F > *function_mocker)
 
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)
 

Private Member Functions

void SetMatchers (const ArgumentMatcherTuple &matchers)
 
 GTEST_DISALLOW_ASSIGN_ (MockSpec)
 
void SetMatchers (const ArgumentMatcherTuple &matchers)
 
 GTEST_DISALLOW_ASSIGN_ (MockSpec)
 
void SetMatchers (const ArgumentMatcherTuple &matchers)
 
 GTEST_DISALLOW_ASSIGN_ (MockSpec)
 

Private Attributes

internal::FunctionMockerBase< F > *const function_mocker_
 
ArgumentMatcherTuple matchers_
 

Friends

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

Detailed Description

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

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

Member Typedef Documentation

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

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

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

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

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

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

Constructor & Destructor Documentation

template<typename F>
testing::internal::MockSpec< F >::MockSpec ( internal::FunctionMockerBase< F > *  function_mocker)
inlineexplicit

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

1255  : function_mocker_(function_mocker) {}
internal::FunctionMockerBase< F > *const function_mocker_
template<typename F>
testing::internal::MockSpec< F >::MockSpec ( internal::FunctionMockerBase< F > *  function_mocker)
inlineexplicit

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

1255  : function_mocker_(function_mocker) {}
internal::FunctionMockerBase< F > *const function_mocker_
template<typename F>
testing::internal::MockSpec< F >::MockSpec ( internal::FunctionMockerBase< F > *  function_mocker)
inlineexplicit

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

1255  : function_mocker_(function_mocker) {}
internal::FunctionMockerBase< F > *const function_mocker_

Member Function Documentation

template<typename F>
testing::internal::MockSpec< F >::GTEST_DISALLOW_ASSIGN_ ( MockSpec< F >  )
private
template<typename F>
testing::internal::MockSpec< F >::GTEST_DISALLOW_ASSIGN_ ( MockSpec< F >  )
private
template<typename F>
testing::internal::MockSpec< F >::GTEST_DISALLOW_ASSIGN_ ( MockSpec< F >  )
private
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 1259 of file gmock-spec-builders.h.

1260  {
1261  LogWithLocation(internal::kInfo, file, line,
1262  string("ON_CALL(") + obj + ", " + call + ") invoked");
1263  return function_mocker_->AddNewOnCallSpec(file, line, matchers_);
1264  }
internal::FunctionMockerBase< F > *const function_mocker_
GTEST_API_ void LogWithLocation(testing::internal::LogSeverity severity, const char *file, int line, const string &message)
Future< bool > call(int depth, Executor *executor)
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 1259 of file gmock-spec-builders.h.

1260  {
1261  LogWithLocation(internal::kInfo, file, line,
1262  string("ON_CALL(") + obj + ", " + call + ") invoked");
1263  return function_mocker_->AddNewOnCallSpec(file, line, matchers_);
1264  }
internal::FunctionMockerBase< F > *const function_mocker_
GTEST_API_ void LogWithLocation(testing::internal::LogSeverity severity, const char *file, int line, const string &message)
Future< bool > call(int depth, Executor *executor)
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 1259 of file gmock-spec-builders.h.

1260  {
1261  LogWithLocation(internal::kInfo, file, line,
1262  string("ON_CALL(") + obj + ", " + call + ") invoked");
1263  return function_mocker_->AddNewOnCallSpec(file, line, matchers_);
1264  }
internal::FunctionMockerBase< F > *const function_mocker_
GTEST_API_ void LogWithLocation(testing::internal::LogSeverity severity, const char *file, int line, const string &message)
Future< bool > call(int depth, Executor *executor)
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 1268 of file gmock-spec-builders.h.

1269  {
1270  const string source_text(string("EXPECT_CALL(") + obj + ", " + call + ")");
1271  LogWithLocation(internal::kInfo, file, line, source_text + " invoked");
1272  return function_mocker_->AddNewExpectation(
1273  file, line, source_text, matchers_);
1274  }
internal::FunctionMockerBase< F > *const function_mocker_
GTEST_API_ void LogWithLocation(testing::internal::LogSeverity severity, const char *file, int line, const string &message)
Future< bool > call(int depth, Executor *executor)
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 1268 of file gmock-spec-builders.h.

1269  {
1270  const string source_text(string("EXPECT_CALL(") + obj + ", " + call + ")");
1271  LogWithLocation(internal::kInfo, file, line, source_text + " invoked");
1272  return function_mocker_->AddNewExpectation(
1273  file, line, source_text, matchers_);
1274  }
internal::FunctionMockerBase< F > *const function_mocker_
GTEST_API_ void LogWithLocation(testing::internal::LogSeverity severity, const char *file, int line, const string &message)
Future< bool > call(int depth, Executor *executor)
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 1268 of file gmock-spec-builders.h.

1269  {
1270  const string source_text(string("EXPECT_CALL(") + obj + ", " + call + ")");
1271  LogWithLocation(internal::kInfo, file, line, source_text + " invoked");
1272  return function_mocker_->AddNewExpectation(
1273  file, line, source_text, matchers_);
1274  }
internal::FunctionMockerBase< F > *const function_mocker_
GTEST_API_ void LogWithLocation(testing::internal::LogSeverity severity, const char *file, int line, const string &message)
Future< bool > call(int depth, Executor *executor)
template<typename F>
void testing::internal::MockSpec< F >::SetMatchers ( const ArgumentMatcherTuple matchers)
inlineprivate

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

1280  {
1281  matchers_ = matchers;
1282  }
template<typename F>
void testing::internal::MockSpec< F >::SetMatchers ( const ArgumentMatcherTuple matchers)
inlineprivate

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

1280  {
1281  matchers_ = matchers;
1282  }
template<typename F>
void testing::internal::MockSpec< F >::SetMatchers ( const ArgumentMatcherTuple matchers)
inlineprivate

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

1280  {
1281  matchers_ = matchers;
1282  }

Friends And Related Function Documentation

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

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

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

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

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

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

Member Data Documentation

template<typename F>
internal::FunctionMockerBase< F > *const testing::internal::MockSpec< F >::function_mocker_
private

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

template<typename F>
ArgumentMatcherTuple testing::internal::MockSpec< F >::matchers_
private

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


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