From 879413783bf64537e3a1c7d036e2fb34700cc4e5 Mon Sep 17 00:00:00 2001 From: "Carl C. Trieloff" Date: Tue, 9 Jan 2007 19:44:50 +0000 Subject: Most of remaining version changes for C++. Still need to deal with AMQFrame defualt constructor and do some clean up here and there.. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@494540 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/tests/BodyHandlerTest.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'cpp/tests/BodyHandlerTest.cpp') 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 +#include #include #include 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()); } -- cgit v1.2.1