From 61647950e1c4e6b1efb0a1b3f3b220783680103f Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 21 Apr 2008 14:37:03 +0000 Subject: QPID-920: send message-accept for acks (as well as completion) * AckPolicy now maintains a set of transfered messages for cumulative accepts git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@650159 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/ClientSessionTest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpp/src/tests/ClientSessionTest.cpp') diff --git a/cpp/src/tests/ClientSessionTest.cpp b/cpp/src/tests/ClientSessionTest.cpp index 9b6e0dce21..a5f7b9d803 100644 --- a/cpp/src/tests/ClientSessionTest.cpp +++ b/cpp/src/tests/ClientSessionTest.cpp @@ -20,6 +20,7 @@ */ #include "unit_test.h" #include "BrokerFixture.h" +#include "qpid/client/AckPolicy.h" #include "qpid/client/Dispatcher.h" #include "qpid/sys/Monitor.h" #include "qpid/sys/Thread.h" @@ -124,7 +125,8 @@ QPID_AUTO_TEST_CASE(testTransfer) BOOST_CHECK(msg->isA()); BOOST_CHECK_EQUAL(string("my-message"), msg->getContent()); //confirm receipt: - fix.session.getExecution().markCompleted(msg->getId(), true, true); + AckPolicy autoAck; + autoAck.ack(Message(*msg), fix.session); } QPID_AUTO_TEST_CASE(testDispatcher) -- cgit v1.2.1