From d46ac2955c4871c9f22067f47490095e2c5f1806 Mon Sep 17 00:00:00 2001 From: Kim van der Riet Date: Wed, 22 Nov 2006 16:57:35 +0000 Subject: Merged AMQP version-sensitive generated files with C++ trunk. Phase 1 of merge complete - all locations where version info is required in the framing, broker and client code, the version has been hard-coded to mahor=8, minor=0. Next step: make broker and client version-aware. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@478237 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/test/unit/qpid/framing/BodyHandlerTest.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpp/test/unit/qpid/framing/BodyHandlerTest.cpp') diff --git a/cpp/test/unit/qpid/framing/BodyHandlerTest.cpp b/cpp/test/unit/qpid/framing/BodyHandlerTest.cpp index f73e80b36c..2758492050 100644 --- a/cpp/test/unit/qpid/framing/BodyHandlerTest.cpp +++ b/cpp/test/unit/qpid/framing/BodyHandlerTest.cpp @@ -63,12 +63,15 @@ private: CPPUNIT_ASSERT_EQUAL(heartbeat, body.get()); } }; + ProtocolVersion v; public: + + BodyHandlerTest() : v(8, 0) {} void testMethod() { - AMQMethodBody* method = new QueueDeclareBody(); + AMQMethodBody* method = new QueueDeclareBody(v); AMQFrame frame(0, method); TestBodyHandler handler(method); handler.handleBody(frame.getBody()); -- cgit v1.2.1