Apache Mesos
Classes | Namespaces | Macros | Functions
gmock.hpp File Reference
#include <gmock/gmock.h>
#include <process/dispatch.hpp>
#include <process/event.hpp>
#include <process/filter.hpp>
#include <process/pid.hpp>
#include <stout/exit.hpp>
#include <stout/nothing.hpp>
#include <stout/synchronized.hpp>

Go to the source code of this file.

Classes

class  FutureResultAction< R, A >
 
class  process::MockFilter
 
class  process::TestsFilter
 
class  process::FilterTestEventListener
 

Namespaces

 process
 

Macros

#define FUTURE_MESSAGE(name, from, to)   process::FutureMessage(name, from, to)
 
#define DROP_MESSAGE(name, from, to)   process::FutureMessage(name, from, to, true)
 
#define FUTURE_DISPATCH(pid, method)   process::FutureDispatch(pid, method)
 
#define DROP_DISPATCH(pid, method)   process::FutureDispatch(pid, method, true)
 
#define DROP_MESSAGES(name, from, to)   process::DropMessages(name, from, to)
 
#define EXPECT_NO_FUTURE_MESSAGES(name, from, to)   process::ExpectNoFutureMessages(name, from, to)
 
#define DROP_DISPATCHES(pid, method)   process::DropDispatches(pid, method)
 
#define EXPECT_NO_FUTURE_DISPATCHES(pid, method)   process::ExpectNoFutureDispatches(pid, method)
 

Functions

 ACTION_TEMPLATE (PromiseArg, HAS_1_TEMPLATE_PARAMS(int, k), AND_1_VALUE_PARAMS(promise))
 
template<int index, typename T >
PromiseArgActionP< index, process::Promise< T > * > FutureArg (process::Future< T > *future)
 
 ACTION_TEMPLATE (PromiseArgField, HAS_1_TEMPLATE_PARAMS(int, k), AND_2_VALUE_PARAMS(field, promise))
 
template<int index, typename Field , typename T >
PromiseArgFieldActionP2< index, Field, process::Promise< T > * > FutureArgField (Field field, process::Future< T > *future)
 
 ACTION_TEMPLATE (PromiseArgNotPointerField, HAS_1_TEMPLATE_PARAMS(int, k), AND_2_VALUE_PARAMS(field, promise))
 
template<int index, typename Field , typename T >
PromiseArgNotPointerFieldActionP2< index, Field, process::Promise< T > * > FutureArgNotPointerField (Field field, process::Future< T > *future)
 
 ACTION_P2 (PromiseSatisfy, promise, value)
 
template<typename T >
PromiseSatisfyActionP2< process::Promise< T > *, T > FutureSatisfy (process::Future< T > *future, T t)
 
PromiseSatisfyActionP2< process::Promise< Nothing > *, NothingFutureSatisfy (process::Future< Nothing > *future)
 
template<typename R , typename A >
FutureResultAction< R, A > FutureResult (process::Future< R > *future, const A &action)
 
 process::MATCHER_P3 (MessageMatcher, name, from, to,"")
 
 process::MATCHER_P4 (UnionMessageMatcher, message, unionType, from, to,"")
 
 process::MATCHER_P2 (DispatchMatcher, pid, method,"")
 
 process::MATCHER_P3 (HttpMatcher, message, path, deserializer,"")
 
 process::MATCHER_P4 (UnionHttpMatcher, message, unionType, path, deserializer,"")
 
template<typename Message , typename Path , typename Deserializer >
Future< http::Request > process::FutureHttpRequest (Message message, Path path, Deserializer deserializer, bool drop=false)
 
template<typename Message , typename UnionType , typename Path , typename Deserializer >
Future< http::Request > process::FutureUnionHttpRequest (Message message, UnionType unionType, Path path, Deserializer deserializer, bool drop=false)
 
template<typename Name , typename From , typename To >
Future< Message > process::FutureMessage (Name name, From from, To to, bool drop=false)
 
template<typename Message , typename UnionType , typename From , typename To >
Future< process::Messageprocess::FutureUnionMessage (Message message, UnionType unionType, From from, To to, bool drop=false)
 
template<typename PID , typename Method >
Future< Nothingprocess::FutureDispatch (PID pid, Method method, bool drop=false)
 
template<typename Name , typename From , typename To >
void process::DropMessages (Name name, From from, To to)
 
template<typename Message , typename UnionType , typename From , typename To >
void process::DropUnionMessages (Message message, UnionType unionType, From from, To to)
 
template<typename Message , typename Path , typename Deserializer >
void process::DropHttpRequests (Message message, Path path, Deserializer deserializer, bool drop=false)
 
template<typename Message , typename UnionType , typename Path , typename Deserializer >
void process::DropUnionHttpRequests (Message message, UnionType unionType, Path path, Deserializer deserializer, bool drop=false)
 
template<typename Message , typename Path , typename Deserializer >
void process::ExpectNoFutureHttpRequests (Message message, Path path, Deserializer deserializer, bool drop=false)
 
template<typename Message , typename UnionType , typename Path , typename Deserializer >
void process::ExpectNoFutureUnionHttpRequests (Message message, UnionType unionType, Path path, Deserializer deserializer, bool drop=false)
 
template<typename Name , typename From , typename To >
void process::ExpectNoFutureMessages (Name name, From from, To to)
 
template<typename Message , typename UnionType , typename From , typename To >
void process::ExpectNoFutureUnionMessages (Message message, UnionType unionType, From from, To to)
 
template<typename PID , typename Method >
void process::DropDispatches (PID pid, Method method)
 
template<typename PID , typename Method >
void process::ExpectNoFutureDispatches (PID pid, Method method)
 

Macro Definition Documentation

#define DROP_DISPATCH (   pid,
  method 
)    process::FutureDispatch(pid, method, true)
#define DROP_DISPATCHES (   pid,
  method 
)    process::DropDispatches(pid, method)
#define DROP_MESSAGE (   name,
  from,
  to 
)    process::FutureMessage(name, from, to, true)
#define DROP_MESSAGES (   name,
  from,
  to 
)    process::DropMessages(name, from, to)
#define EXPECT_NO_FUTURE_DISPATCHES (   pid,
  method 
)    process::ExpectNoFutureDispatches(pid, method)
#define EXPECT_NO_FUTURE_MESSAGES (   name,
  from,
  to 
)    process::ExpectNoFutureMessages(name, from, to)
#define FUTURE_DISPATCH (   pid,
  method 
)    process::FutureDispatch(pid, method)
#define FUTURE_MESSAGE (   name,
  from,
  to 
)    process::FutureMessage(name, from, to)

Function Documentation

ACTION_P2 ( PromiseSatisfy  ,
promise  ,
value   
)
ACTION_TEMPLATE ( PromiseArg  ,
HAS_1_TEMPLATE_PARAMS(int, k)  ,
AND_1_VALUE_PARAMS(promise)   
)
ACTION_TEMPLATE ( PromiseArgField  ,
HAS_1_TEMPLATE_PARAMS(int, k)  ,
AND_2_VALUE_PARAMS(field, promise)   
)
ACTION_TEMPLATE ( PromiseArgNotPointerField  ,
HAS_1_TEMPLATE_PARAMS(int, k)  ,
AND_2_VALUE_PARAMS(field, promise)   
)
template<int index, typename T >
PromiseArgActionP<index, process::Promise<T>*> FutureArg ( process::Future< T > *  future)
template<int index, typename Field , typename T >
PromiseArgFieldActionP2<index, Field, process::Promise<T>*> FutureArgField ( Field  field,
process::Future< T > *  future 
)
template<int index, typename Field , typename T >
PromiseArgNotPointerFieldActionP2<index, Field, process::Promise<T>*> FutureArgNotPointerField ( Field  field,
process::Future< T > *  future 
)
template<typename R , typename A >
FutureResultAction<R, A> FutureResult ( process::Future< R > *  future,
const A &  action 
)
template<typename T >
PromiseSatisfyActionP2<process::Promise<T>*, T> FutureSatisfy ( process::Future< T > *  future,
t 
)
PromiseSatisfyActionP2<process::Promise<Nothing>*, Nothing> FutureSatisfy ( process::Future< Nothing > *  future)
inline