summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/BrokerChannelTest.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-06-27 21:19:14 +0000
committerAlan Conway <aconway@apache.org>2007-06-27 21:19:14 +0000
commit7ded010ea1e46465b97bdd199ad36dcd7d646e8e (patch)
tree598533606e40c5ebd6404529be7047ace29d407e /qpid/cpp/src/tests/BrokerChannelTest.cpp
parent66621d4049202a04b686231e0098da9951d5fd1a (diff)
downloadqpid-python-7ded010ea1e46465b97bdd199ad36dcd7d646e8e.tar.gz
* src/qpid/framing/ChannelAdapter.cpp: Use handler chains
for in and outbound frames. * src/qpid/framing/InputHandler.h, OutputHandler.h, FrameHandler.h: All handlers pass AMQFrame& and have consistent memory management. Terminal OutputHandlers used to take ownership and delete frame, now they make a shallow copy instead. * src/qpid/framing/Handler.h, FrameHandler.h: Simplified. * src/qpid/client/ClientConnection.cpp: * src/qpid/broker/Connection.cpp: * src/qpid/broker/BrokerChannel.cpp: Update for ChannelAdapter changes. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@551336 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/BrokerChannelTest.cpp')
-rw-r--r--qpid/cpp/src/tests/BrokerChannelTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qpid/cpp/src/tests/BrokerChannelTest.cpp b/qpid/cpp/src/tests/BrokerChannelTest.cpp
index 19841dc18d..9dee1fc862 100644
--- a/qpid/cpp/src/tests/BrokerChannelTest.cpp
+++ b/qpid/cpp/src/tests/BrokerChannelTest.cpp
@@ -31,7 +31,7 @@
#include "MockChannel.h"
#include "qpid/broker/Connection.h"
#include "qpid/framing/ProtocolInitiation.h"
-#include <boost/ptr_container/ptr_vector.hpp>
+#include <vector>
using namespace boost;
using namespace qpid::broker;
@@ -41,9 +41,9 @@ using std::string;
using std::queue;
struct MockHandler : ConnectionOutputHandler{
- boost::ptr_vector<AMQFrame> frames;
+ std::vector<AMQFrame> frames;
- void send(AMQFrame* frame){ frames.push_back(frame); }
+ void send(AMQFrame& frame){ frames.push_back(frame); }
void close() {};
};