diff options
author | Alan Conway <aconway@apache.org> | 2007-12-10 17:57:49 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-12-10 17:57:49 +0000 |
commit | ef19d923c46c43e937f1d4dd91c906bda08d64bd (patch) | |
tree | e4e8fa91f12edbebccb80f4916d1654fcbae2022 /qpid/cpp/src/tests/BrokerFixture.h | |
parent | 92a003c58ae103c30024b588accfe2ef86de561d (diff) | |
download | qpid-python-ef19d923c46c43e937f1d4dd91c906bda08d64bd.tar.gz |
src/tests/SocketProxy.h: proxy between local client & server to simulate network disconnect.
src/qpid/client/Connector.h: remove friend hack for previous flawed disconnect approach.
src/tests/BrokerFixture.h: ""
src/tests/ClientSessionTest.cpp, exception_test.cpp: use ProxyConnection
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@602980 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/BrokerFixture.h')
-rw-r--r-- | qpid/cpp/src/tests/BrokerFixture.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/qpid/cpp/src/tests/BrokerFixture.h b/qpid/cpp/src/tests/BrokerFixture.h index ceb8ecb4e6..c7222c03a2 100644 --- a/qpid/cpp/src/tests/BrokerFixture.h +++ b/qpid/cpp/src/tests/BrokerFixture.h @@ -29,16 +29,6 @@ #include "qpid/client/Session_0_10.h" #include "qpid/client/SubscriptionManager.h" -namespace qpid { namespace client { -/** Back door into private Connector stuff */ -struct TestConnector { - static void disconnect(qpid::client::Connector& c) { - c.socket.close(); - c.handleClosed(); - } -}; -}} - /** * A fixture to create an in-process broker and connect to it for tests. */ @@ -86,16 +76,6 @@ struct BrokerFixture { void open(qpid::client::Connection& c) { c.open("localhost", broker->getPort()); } - - /** Close a connection's socket */ - static void disconnect(qpid::client::Connection& c) { - struct Expose : public qpid::client::Connection { - void disconnect() { - qpid::client::TestConnector::disconnect(*impl->getConnector()); - } - }; - static_cast<Expose&>(c).disconnect(); - } }; #endif /*!TESTS_BROKERFIXTURE_H*/ |