diff options
author | Carl C. Trieloff <cctrieloff@apache.org> | 2006-12-21 17:43:56 +0000 |
---|---|---|
committer | Carl C. Trieloff <cctrieloff@apache.org> | 2006-12-21 17:43:56 +0000 |
commit | 644f220f96a82a5f5cfbbf6c8c57b27d6be10fa8 (patch) | |
tree | 00af8c4d440a18986e3c5ed6ecd6d3e89372fb9a /cpp/tests/ChannelTest.cpp | |
parent | 2032535eb650a7fddeef04d21b750dc026f43eb8 (diff) | |
download | qpid-python-644f220f96a82a5f5cfbbf6c8c57b27d6be10fa8.tar.gz |
Multi version part 3. (2 more to come + tests)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@489418 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/tests/ChannelTest.cpp')
-rw-r--r-- | cpp/tests/ChannelTest.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cpp/tests/ChannelTest.cpp b/cpp/tests/ChannelTest.cpp index 120f7c287f..f0860b8a28 100644 --- a/cpp/tests/ChannelTest.cpp +++ b/cpp/tests/ChannelTest.cpp @@ -26,6 +26,8 @@ #include <qpid_test_plugin.h> #include <iostream> #include <memory> +#include <AMQP_HighestVersion.h> + using namespace boost; using namespace qpid::broker; @@ -132,7 +134,7 @@ class ChannelTest : public CppUnit::TestCase void testConsumerMgmt(){ Queue::shared_ptr queue(new Queue("my_queue")); - Channel channel(qpid::framing::highestVersion, 0, 0, 0); + Channel channel(qpid::framing::highestProtocolVersion, 0, 0, 0); CPPUNIT_ASSERT(!channel.exists("my_consumer")); ConnectionToken* owner = 0; @@ -157,7 +159,7 @@ class ChannelTest : public CppUnit::TestCase void testDeliveryNoAck(){ DummyHandler handler; - Channel channel(qpid::framing::highestVersion, &handler, 7, 10000); + Channel channel(qpid::framing::highestProtocolVersion, &handler, 7, 10000); const string data("abcdefghijklmn"); @@ -184,7 +186,7 @@ class ChannelTest : public CppUnit::TestCase void testDeliveryAndRecovery(){ DummyHandler handler; - Channel channel(qpid::framing::highestVersion, &handler, 7, 10000); + Channel channel(qpid::framing::highestProtocolVersion, &handler, 7, 10000); const string data("abcdefghijklmn"); Message::shared_ptr msg(createMessage("test", "my_routing_key", "my_message_id", 14)); @@ -212,7 +214,7 @@ class ChannelTest : public CppUnit::TestCase void testStaging(){ MockMessageStore store; DummyHandler handler; - Channel channel(qpid::framing::highestVersion, &handler, 1, 1000/*framesize*/, &store, 10/*staging threshold*/); + Channel channel(qpid::framing::highestProtocolVersion, &handler, 1, 1000/*framesize*/, &store, 10/*staging threshold*/); const string data[] = {"abcde", "fghij", "klmno"}; Message* msg = new Message(0, "my_exchange", "my_routing_key", false, false); |