From 4780580874e8d6a3e3590fa5fdf8a088310b20ae Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Sun, 20 Apr 2008 12:10:37 +0000 Subject: QPID-920: converted c++ client to use final 0-10 protocol * connection handler converted to using invoker & proxy and updated to final method defs * SessionCore & ExecutionHandler replace by SessionImpl * simplified handling of completion & results, removed handling of responses git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@649915 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/tests/MessageUtils.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'qpid/cpp/src/tests/MessageUtils.h') diff --git a/qpid/cpp/src/tests/MessageUtils.h b/qpid/cpp/src/tests/MessageUtils.h index 3def8cd41b..21ee834ba7 100644 --- a/qpid/cpp/src/tests/MessageUtils.h +++ b/qpid/cpp/src/tests/MessageUtils.h @@ -22,6 +22,8 @@ #include "qpid/broker/Message.h" #include "qpid/broker/MessageDelivery.h" #include "qpid/framing/AMQFrame.h" +#include "qpid/framing/MessageTransferBody.h" +#include "qpid/framing/Uuid.h" using namespace qpid; using namespace broker; @@ -29,12 +31,12 @@ using namespace framing; struct MessageUtils { - static boost::intrusive_ptr createMessage(const string& exchange, const string& routingKey, - const string& messageId, uint64_t contentSize = 0) + static boost::intrusive_ptr createMessage(const string& exchange="", const string& routingKey="", + const Uuid& messageId=Uuid(true), uint64_t contentSize = 0) { boost::intrusive_ptr msg(new Message()); - AMQFrame method(in_place(ProtocolVersion(), 0, exchange, 0, 0)); + AMQFrame method(in_place(ProtocolVersion(), exchange, 0, 0)); AMQFrame header(in_place()); msg->getFrames().append(method); -- cgit v1.2.1