| 105 | } |
| 106 | |
| 107 | void MockCheckedActualCall::completeCallWhenMatchIsFound() |
| 108 | { |
| 109 | // Expectations that don't ignore parameters have higher fulfillment preference than those that ignore parameters |
| 110 | |
| 111 | matchingExpectation_ = potentiallyMatchingExpectations_.removeFirstFinalizedMatchingExpectation(); |
| 112 | if (matchingExpectation_) { |
| 113 | copyOutputParameters(matchingExpectation_); |
| 114 | callHasSucceeded(); |
| 115 | } else { |
| 116 | MockCheckedExpectedCall* matchingExpectationWithIgnoredParameters = potentiallyMatchingExpectations_.getFirstMatchingExpectation(); |
| 117 | if (matchingExpectationWithIgnoredParameters) { |
| 118 | copyOutputParameters(matchingExpectationWithIgnoredParameters); |
| 119 | } |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | void MockCheckedActualCall::callHasSucceeded() |
| 124 | { |
nothing calls this directly
no test coverage detected