summaryrefslogtreecommitdiff
path: root/cpp/tests/BodyHandlerTest.cpp
diff options
context:
space:
mode:
authorCarl C. Trieloff <cctrieloff@apache.org>2007-01-09 20:29:06 +0000
committerCarl C. Trieloff <cctrieloff@apache.org>2007-01-09 20:29:06 +0000
commitf420415a0fd5ab9f536d38aa6ec6bd4580b45e30 (patch)
tree2889ea8ccb36409d52c4c927050869e58eb94c3c /cpp/tests/BodyHandlerTest.cpp
parent34ba05808a60710ec97abf82620074c6b40fe1d4 (diff)
downloadqpid-python-f420415a0fd5ab9f536d38aa6ec6bd4580b45e30.tar.gz
version back merge from trunk rev 494553.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@494559 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/tests/BodyHandlerTest.cpp')
-rw-r--r--cpp/tests/BodyHandlerTest.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpp/tests/BodyHandlerTest.cpp b/cpp/tests/BodyHandlerTest.cpp
index 5c3cba0f25..bf60dd21e3 100644
--- a/cpp/tests/BodyHandlerTest.cpp
+++ b/cpp/tests/BodyHandlerTest.cpp
@@ -19,6 +19,7 @@
*
*/
#include <iostream>
+#include <AMQP_HighestVersion.h>
#include <amqp_framing.h>
#include <qpid_test_plugin.h>
using namespace qpid::framing;
@@ -72,7 +73,7 @@ public:
void testMethod()
{
AMQMethodBody* method = new QueueDeclareBody(v);
- AMQFrame frame(0, method);
+ AMQFrame frame(highestProtocolVersion, 0, method);
TestBodyHandler handler(method);
handler.handleBody(frame.getBody());
}
@@ -80,7 +81,7 @@ public:
void testHeader()
{
AMQHeaderBody* header = new AMQHeaderBody();
- AMQFrame frame(0, header);
+ AMQFrame frame(highestProtocolVersion, 0, header);
TestBodyHandler handler(header);
handler.handleBody(frame.getBody());
}
@@ -88,7 +89,7 @@ public:
void testContent()
{
AMQContentBody* content = new AMQContentBody();
- AMQFrame frame(0, content);
+ AMQFrame frame(highestProtocolVersion, 0, content);
TestBodyHandler handler(content);
handler.handleBody(frame.getBody());
}
@@ -96,7 +97,7 @@ public:
void testHeartbeat()
{
AMQHeartbeatBody* heartbeat = new AMQHeartbeatBody();
- AMQFrame frame(0, heartbeat);
+ AMQFrame frame(highestProtocolVersion, 0, heartbeat);
TestBodyHandler handler(heartbeat);
handler.handleBody(frame.getBody());
}