示例#1
0
	MockCheckedExpectedCall* addFunctionToExpectationsList(const SimpleString& name, int order)
	{
		MockCheckedExpectedCall* newCall = new MockCheckedExpectedCall;
		newCall->withName(name);
		newCall->withCallOrder(order);
		expectationsList->addExpectedCall(newCall);
		return newCall;
	}
示例#2
0
MockExpectedCall& MockSupport::expectOneCall(const SimpleString& functionName)
{
	if (!enabled_) return MockIgnoredExpectedCall::instance();

	MockCheckedExpectedCall* call = new MockCheckedExpectedCall;
	call->withName(functionName);
	if (strictOrdering_)
		call->withCallOrder(++expectedCallOrder_);
	expectations_.addExpectedCall(call);
	return *call;
}