summaryrefslogtreecommitdiff
path: root/cpp/src/tests/MockChannel.h
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
commit0efcf2c5c91f4927ccc00ad1cf391c2f964cc2e1 (patch)
treea9318ac4787cf588dd1329c2e557d8f870be20cc /cpp/src/tests/MockChannel.h
parent548abd065f91bc1f238ac98c24edf410edf10356 (diff)
downloadqpid-python-0efcf2c5c91f4927ccc00ad1cf391c2f964cc2e1.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/qpid@551336 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/MockChannel.h')
-rw-r--r--cpp/src/tests/MockChannel.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/tests/MockChannel.h b/cpp/src/tests/MockChannel.h
index cadfa83b56..908a222614 100644
--- a/cpp/src/tests/MockChannel.h
+++ b/cpp/src/tests/MockChannel.h
@@ -25,12 +25,12 @@
#include "qpid/framing/AMQFrame.h"
#include "qpid/framing/BasicGetBody.h"
#include <boost/shared_ptr.hpp>
-#include <boost/ptr_container/ptr_vector.hpp>
+#include <vector>
/** Mock output handler to collect frames */
struct MockOutputHandler : public qpid::framing::OutputHandler {
- boost::ptr_vector<qpid::framing::AMQFrame> frames;
- void send(qpid::framing::AMQFrame* frame){ frames.push_back(frame); }
+ std::vector<qpid::framing::AMQFrame> frames;
+ void send(qpid::framing::AMQFrame& frame){ frames.push_back(frame); }
};
/**