diff options
Diffstat (limited to 'cpp/src/tests')
-rw-r--r-- | cpp/src/tests/MockChannel.h | 8 | ||||
-rw-r--r-- | cpp/src/tests/ReferenceTest.cpp | 4 |
2 files changed, 3 insertions, 9 deletions
diff --git a/cpp/src/tests/MockChannel.h b/cpp/src/tests/MockChannel.h index 908a222614..fb2de98d2a 100644 --- a/cpp/src/tests/MockChannel.h +++ b/cpp/src/tests/MockChannel.h @@ -19,7 +19,6 @@ * */ -#include "qpid/framing/MethodContext.h" #include "qpid/framing/ChannelAdapter.h" #include "qpid/framing/OutputHandler.h" #include "qpid/framing/AMQFrame.h" @@ -58,12 +57,7 @@ struct MockChannel : public qpid::framing::ChannelAdapter boost::shared_ptr<qpid::framing::AMQContentBody> b) { send(b); } void handleHeartbeat( boost::shared_ptr<qpid::framing::AMQHeartbeatBody> b) { send(b); } - void handleMethodInContext( - boost::shared_ptr<qpid::framing::AMQMethodBody> method, - const qpid::framing::MethodContext& context) - { - context.channel->send(method); - }; + void handleMethod(boost::shared_ptr<qpid::framing::AMQMethodBody> method) { send(method); }; }; diff --git a/cpp/src/tests/ReferenceTest.cpp b/cpp/src/tests/ReferenceTest.cpp index e8b759264b..b3dd44bf7d 100644 --- a/cpp/src/tests/ReferenceTest.cpp +++ b/cpp/src/tests/ReferenceTest.cpp @@ -70,11 +70,11 @@ class ReferenceTest : public CppUnit::TestCase MessageTransferBody::shared_ptr t1(new MessageTransferBody(v)); // TODO aconway 2007-04-03: hack around lack of generated setters. Clean this up. const_cast<framing::Content&>(t1->getBody()) = framing::Content(REFERENCE,"bar"); - MessageMessage::shared_ptr m1(new MessageMessage(0, 1, t1, r1)); + MessageMessage::shared_ptr m1(new MessageMessage(0, t1, r1)); MessageTransferBody::shared_ptr t2(new MessageTransferBody(v)); const_cast<framing::Content&>(t2->getBody()) = framing::Content(REFERENCE,"bar"); - MessageMessage::shared_ptr m2(new MessageMessage(0, 2, t2, r1)); + MessageMessage::shared_ptr m2(new MessageMessage(0, t2, r1)); MessageAppendBody::shared_ptr a1(new MessageAppendBody(v)); MessageAppendBody::shared_ptr a2(new MessageAppendBody(v)); |