diff options
author | Gordon Sim <gsim@apache.org> | 2006-12-06 17:51:42 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2006-12-06 17:51:42 +0000 |
commit | f2d0f0cfbfebb082e92f28b8d1b2987a0f20acf6 (patch) | |
tree | d71e0a7854dcfbef75040ee426b53f6369e0cc7a /cpp/tests/TxAckTest.cpp | |
parent | f8c692d37104a95ad245402ffe0d7d6b7c4ea816 (diff) | |
download | qpid-python-f2d0f0cfbfebb082e92f28b8d1b2987a0f20acf6.tar.gz |
Allow non-durable messages to be lazy-loaded. Cleanup of lazy-loaded messages
that are never enqueued.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@483165 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/tests/TxAckTest.cpp')
-rw-r--r-- | cpp/tests/TxAckTest.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cpp/tests/TxAckTest.cpp b/cpp/tests/TxAckTest.cpp index 709d45c1ad..6832c5995b 100644 --- a/cpp/tests/TxAckTest.cpp +++ b/cpp/tests/TxAckTest.cpp @@ -37,9 +37,9 @@ class TxAckTest : public CppUnit::TestCase class TestMessageStore : public NullMessageStore { public: - vector<Message::shared_ptr> dequeued; + vector<Message*> dequeued; - void dequeue(TransactionContext*, Message::shared_ptr& msg, const Queue& /*queue*/, const string * const /*xid*/) + void dequeue(TransactionContext*, Message* const msg, const Queue& /*queue*/, const string * const /*xid*/) { dequeued.push_back(msg); } @@ -86,13 +86,13 @@ public: op.prepare(0); CPPUNIT_ASSERT_EQUAL((size_t) 7, store.dequeued.size()); CPPUNIT_ASSERT_EQUAL((size_t) 10, deliveries.size()); - CPPUNIT_ASSERT_EQUAL(messages[0], store.dequeued[0]);//msg 1 - CPPUNIT_ASSERT_EQUAL(messages[1], store.dequeued[1]);//msg 2 - CPPUNIT_ASSERT_EQUAL(messages[2], store.dequeued[2]);//msg 3 - CPPUNIT_ASSERT_EQUAL(messages[3], store.dequeued[3]);//msg 4 - CPPUNIT_ASSERT_EQUAL(messages[4], store.dequeued[4]);//msg 5 - CPPUNIT_ASSERT_EQUAL(messages[6], store.dequeued[5]);//msg 7 - CPPUNIT_ASSERT_EQUAL(messages[8], store.dequeued[6]);//msg 9 + CPPUNIT_ASSERT_EQUAL(messages[0].get(), store.dequeued[0]);//msg 1 + CPPUNIT_ASSERT_EQUAL(messages[1].get(), store.dequeued[1]);//msg 2 + CPPUNIT_ASSERT_EQUAL(messages[2].get(), store.dequeued[2]);//msg 3 + CPPUNIT_ASSERT_EQUAL(messages[3].get(), store.dequeued[3]);//msg 4 + CPPUNIT_ASSERT_EQUAL(messages[4].get(), store.dequeued[4]);//msg 5 + CPPUNIT_ASSERT_EQUAL(messages[6].get(), store.dequeued[5]);//msg 7 + CPPUNIT_ASSERT_EQUAL(messages[8].get(), store.dequeued[6]);//msg 9 } void testCommit() |