diff options
| author | Gordon Sim <gsim@apache.org> | 2007-08-31 16:45:20 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2007-08-31 16:45:20 +0000 |
| commit | f9236f2f81a1df20a4a95d2e8dc8538b33fb4746 (patch) | |
| tree | 66570f8ee6b0adaf5906cd724debe3ed5404d3f2 /qpid/cpp/src/tests/BrokerChannelTest.cpp | |
| parent | 0c9a820ac910c913e0a256f3d292111ebf2efa37 (diff) | |
| download | qpid-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/BrokerChannelTest.cpp')
| -rw-r--r-- | qpid/cpp/src/tests/BrokerChannelTest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/qpid/cpp/src/tests/BrokerChannelTest.cpp b/qpid/cpp/src/tests/BrokerChannelTest.cpp index 1e5a30f157..0787405eb7 100644 --- a/qpid/cpp/src/tests/BrokerChannelTest.cpp +++ b/qpid/cpp/src/tests/BrokerChannelTest.cpp @@ -256,13 +256,13 @@ class BrokerChannelTest : public CppUnit::TestCase queue->deliver(msg3); sleep(2); - Message::shared_ptr next = queue->dequeue(); + Message::shared_ptr next = queue->dequeue().payload; CPPUNIT_ASSERT_EQUAL(msg1, next); CPPUNIT_ASSERT_EQUAL((uint32_t) data1.size(), next->encodedContentSize()); - next = queue->dequeue(); + next = queue->dequeue().payload; CPPUNIT_ASSERT_EQUAL(msg2, next); CPPUNIT_ASSERT_EQUAL((uint32_t) data2.size(), next->encodedContentSize()); - next = queue->dequeue(); + next = queue->dequeue().payload; CPPUNIT_ASSERT_EQUAL(msg3, next); CPPUNIT_ASSERT_EQUAL((uint32_t) 0, next->encodedContentSize()); @@ -295,11 +295,11 @@ class BrokerChannelTest : public CppUnit::TestCase queue3->deliver(msg1); sleep(2); - Message::shared_ptr next = queue1->dequeue(); + Message::shared_ptr next = queue1->dequeue().payload; CPPUNIT_ASSERT_EQUAL(msg1, next); - next = queue2->dequeue(); + next = queue2->dequeue().payload; CPPUNIT_ASSERT_EQUAL(msg1, next); - next = queue3->dequeue(); + next = queue3->dequeue().payload; CPPUNIT_ASSERT_EQUAL(msg1, next); } |
