| 80 | } |
| 81 | |
| 82 | void MockCheckedActualCall::copyOutputParameters(MockCheckedExpectedCall* expectedCall) |
| 83 | { |
| 84 | for (MockOutputParametersListNode* p = outputParameterExpectations_; p; p = p->next_) |
| 85 | { |
| 86 | MockNamedValue outputParameter = expectedCall->getOutputParameter(p->name_); |
| 87 | MockNamedValueCopier* copier = outputParameter.getCopier(); |
| 88 | if (copier) |
| 89 | { |
| 90 | copier->copy(p->ptr_, outputParameter.getConstObjectPointer()); |
| 91 | } |
| 92 | else if ((outputParameter.getType() == "const void*") && (p->type_ == "void*")) |
| 93 | { |
| 94 | const void* data = outputParameter.getConstPointerValue(); |
| 95 | size_t size = outputParameter.getSize(); |
| 96 | PlatformSpecificMemCpy(p->ptr_, data, size); |
| 97 | } |
| 98 | else if (outputParameter.getName() != "") |
| 99 | { |
| 100 | SimpleString type = expectedCall->getOutputParameter(p->name_).getType(); |
| 101 | MockNoWayToCopyCustomTypeFailure failure(getTest(), type); |
| 102 | failTest(failure); |
| 103 | } |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | void MockCheckedActualCall::completeCallWhenMatchIsFound() |
| 108 | { |
nothing calls this directly
no test coverage detected