MockExpectedCall& MockCheckedExpectedCall::withLongIntParameter(const SimpleString& name, long int value) { MockNamedValue* newParameter = new MockExpectedFunctionParameter(name); inputParameters_->add(newParameter); newParameter->setValue(value); return *this; }
MockFunctionCall& MockExpectedFunctionCall::withParameter(const SimpleString& name, void* value) { MockNamedValue* newParameter = new MockExpectedFunctionParameter(name); parameters_->add(newParameter); newParameter->setValue(value); return *this; }
MockExpectedCall& MockCheckedExpectedCall::withOutputParameterReturning(const SimpleString& name, const void* value, size_t size) { MockNamedValue* newParameter = new MockExpectedFunctionParameter(name); outputParameters_->add(newParameter); newParameter->setValue(value); newParameter->setSize(size); return *this; }
void MockSupport::setData(const SimpleString& name, void* value) { MockNamedValue* newData = retrieveDataFromStore(name); newData->setValue(value); }