emock
emock copied to clipboard
how to use .after(const InvocationMockerNamespace& ns, const std::string& name)
if I have a mock like this: EMOCK(&CLASS_NAME_A::FUNCTION_NAME_A).expects(once()).id("1");
how can i ref to it from another EMOCK? EMOCK(&CLASS_NAME_B::FUNCTION_NAME_B).expects(once()).after(???, "1").will(ignoreReturnValue());
what should i fill for ???
try to use:
EMOCK(&CLASS_NAME_B::FUNCTION_NAME_B)
.expects(once())
.after("1")
.will(ignoreReturnValue());