diff options
Diffstat (limited to 'cpp/tests/MockChannel.h')
-rw-r--r-- | cpp/tests/MockChannel.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/tests/MockChannel.h b/cpp/tests/MockChannel.h index 10fcb56969..79aa1d35af 100644 --- a/cpp/tests/MockChannel.h +++ b/cpp/tests/MockChannel.h @@ -19,16 +19,17 @@ * */ -#include <boost/shared_ptr.hpp> #include "framing/MethodContext.h" #include "framing/ChannelAdapter.h" #include "framing/OutputHandler.h" #include "framing/AMQFrame.h" #include "BasicGetBody.h" +#include <boost/shared_ptr.hpp> +#include <boost/ptr_container/ptr_vector.hpp> /** Mock output handler to collect frames */ struct MockOutputHandler : public qpid::framing::OutputHandler { - std::vector<qpid::framing::AMQFrame*> frames; + boost::ptr_vector<qpid::framing::AMQFrame> frames; void send(qpid::framing::AMQFrame* frame){ frames.push_back(frame); } }; |