summaryrefslogtreecommitdiff
path: root/cpp/src/tests/BrokerFixture.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-12-10 17:57:49 +0000
committerAlan Conway <aconway@apache.org>2007-12-10 17:57:49 +0000
commit22ef0be441cd0f12b1ca6402f397deac390ce4d0 (patch)
treec124a8348ad9f0517116e2c638884c6e0adb50d1 /cpp/src/tests/BrokerFixture.h
parente997eeb68fdb7f975f9e70848832f2b0d7612683 (diff)
downloadqpid-python-22ef0be441cd0f12b1ca6402f397deac390ce4d0.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/qpid@602980 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/BrokerFixture.h')
-rw-r--r--cpp/src/tests/BrokerFixture.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/cpp/src/tests/BrokerFixture.h b/cpp/src/tests/BrokerFixture.h
index ceb8ecb4e6..c7222c03a2 100644
--- a/cpp/src/tests/BrokerFixture.h
+++ b/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*/