summaryrefslogtreecommitdiff
path: root/tests/test-resource-engine/test-resource-engine.cpp
diff options
context:
space:
mode:
authorWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-02-15 11:45:24 +0200
committerWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-02-15 11:45:24 +0200
commit75d34a403884640d9203c6eed3ed3b74964e94e8 (patch)
tree442485a59717b92fc3fbad635114e87d5500f121 /tests/test-resource-engine/test-resource-engine.cpp
parentf15d3608dc4d6444fb587f9dfbb93c7a8b02c740 (diff)
downloadlibresourceqt-75d34a403884640d9203c6eed3ed3b74964e94e8.tar.gz
Fixed acquire
Diffstat (limited to 'tests/test-resource-engine/test-resource-engine.cpp')
-rw-r--r--tests/test-resource-engine/test-resource-engine.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test-resource-engine/test-resource-engine.cpp b/tests/test-resource-engine/test-resource-engine.cpp
index df5b187..15858da 100644
--- a/tests/test-resource-engine/test-resource-engine.cpp
+++ b/tests/test-resource-engine/test-resource-engine.cpp
@@ -211,9 +211,15 @@ resset_t *resconn_connect(resconn_t *connection, resmsg_t *message,
resproto_status_t callbackFunction)
{
verify_resconn_connect(connection, message, callbackFunction);
+ resmsg_t statusMessage;
resSet = (resset_t *) calloc(1, sizeof(resset_t));
-
+ statusMessage.type = RESMSG_STATUS;
+ statusMessage.status.errcod = 0;
+ statusMessage.status.errmsg = 0;
+ statusMessage.record.id = 11;
+ statusMessage.record.reqno = message->record.reqno;
+ callbackFunction(resSet, &statusMessage);
return resSet;
}