summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/TxAckTest.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-08-31 16:45:20 +0000
committerGordon Sim <gsim@apache.org>2007-08-31 16:45:20 +0000
commitf9236f2f81a1df20a4a95d2e8dc8538b33fb4746 (patch)
tree66570f8ee6b0adaf5906cd724debe3ed5404d3f2 /qpid/cpp/src/tests/TxAckTest.cpp
parent0c9a820ac910c913e0a256f3d292111ebf2efa37 (diff)
downloadqpid-python-f9236f2f81a1df20a4a95d2e8dc8538b33fb4746.tar.gz
Pass QueuedMessage to queues consumers. This records the position of that message in the queue which is need to handle rlease and acquire.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@571518 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/TxAckTest.cpp')
-rw-r--r--qpid/cpp/src/tests/TxAckTest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/TxAckTest.cpp b/qpid/cpp/src/tests/TxAckTest.cpp
index 89a907d495..65426e4e21 100644
--- a/qpid/cpp/src/tests/TxAckTest.cpp
+++ b/qpid/cpp/src/tests/TxAckTest.cpp
@@ -76,7 +76,9 @@ public:
msg->getProperties<DeliveryProperties>()->setDeliveryMode(PERSISTENT);
msg->getProperties<DeliveryProperties>()->setRoutingKey("routing_key");
messages.push_back(msg);
- deliveries.push_back(DeliveryRecord(msg, queue, "xyz", (i+1)));
+ QueuedMessage qm;
+ qm.payload = msg;
+ deliveries.push_back(DeliveryRecord(qm, queue, "xyz", (i+1)));
}
//assume msgs 1-5, 7 and 9 are all acked (i.e. 6, 8 & 10 are not)