From c1b0ba624ff2de40b23342cf2a96885342884dad Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 21 Mar 2007 19:12:14 +0000 Subject: Refactored client side for dual-mode Channel supporting either 0-9 Message or 0-8 Basic. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@520972 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/tests/InProcessBroker.h | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'cpp/tests/InProcessBroker.h') diff --git a/cpp/tests/InProcessBroker.h b/cpp/tests/InProcessBroker.h index 709ca9b953..833b821d11 100644 --- a/cpp/tests/InProcessBroker.h +++ b/cpp/tests/InProcessBroker.h @@ -145,25 +145,30 @@ std::ostream& operator<<( return out; } +} // namespace broker -}} // namespace qpid::broker - +namespace client { /** An in-process client+broker all in one. */ -class InProcessBrokerClient : public qpid::client::Connection { +class InProcessBrokerClient : public client::Connection { public: - qpid::broker::InProcessBroker broker; - qpid::broker::InProcessBroker::Conversation& conversation; + broker::InProcessBroker broker; + broker::InProcessBroker::Conversation& conversation; /** Constructor creates broker and opens client connection. */ - InProcessBrokerClient(qpid::framing::ProtocolVersion version= - qpid::framing::highestProtocolVersion - ) : broker(version), conversation(broker.conversation) + InProcessBrokerClient( + u_int32_t max_frame_size=65536, + framing::ProtocolVersion version= framing::highestProtocolVersion + ) : client::Connection(false, max_frame_size, version), + broker(version), + conversation(broker.conversation) { setConnector(broker); open(""); } - - ~InProcessBrokerClient() {} }; + +}} // namespace qpid::client + + #endif // _tests_InProcessBroker_h -- cgit v1.2.1