diff options
Diffstat (limited to 'cpp/test/Ice/proxy/Client.cpp')
-rw-r--r-- | cpp/test/Ice/proxy/Client.cpp | 44 |
1 files changed, 13 insertions, 31 deletions
diff --git a/cpp/test/Ice/proxy/Client.cpp b/cpp/test/Ice/proxy/Client.cpp index 8cbbe2873b5..0e4155bf810 100644 --- a/cpp/test/Ice/proxy/Client.cpp +++ b/cpp/test/Ice/proxy/Client.cpp @@ -8,44 +8,26 @@ // ********************************************************************** #include <Ice/Ice.h> -#include <TestCommon.h> +#include <TestHelper.h> #include <Test.h> -DEFINE_TEST("client") - using namespace std; -int -run(int, char**, const Ice::CommunicatorPtr& communicator) +class Client : public Test::TestHelper { - Test::MyClassPrxPtr allTests(const Ice::CommunicatorPtr&); - Test::MyClassPrxPtr myClass = allTests(communicator); - - myClass->shutdown(); +public: - return EXIT_SUCCESS; -} + void run(int, char**); +}; -int -main(int argc, char* argv[]) +void +Client::run(int argc, char** argv) { -#ifdef ICE_STATIC_LIBS - Ice::registerIceSSL(false); - Ice::registerIceWS(true); -# ifdef ICE_HAS_BT - Ice::registerIceBT(false); -# endif -#endif + Ice::CommunicatorHolder communicator = initialize(argc, argv); + Test::MyClassPrxPtr allTests(Test::TestHelper*); + Test::MyClassPrxPtr myClass = allTests(this); - try - { - Ice::InitializationData initData = getTestInitData(argc, argv); - Ice::CommunicatorHolder ich(argc, argv, initData); - return run(argc, argv, ich.communicator()); - } - catch(const Ice::Exception& ex) - { - cerr << ex << endl; - return EXIT_FAILURE; - } + myClass->shutdown(); } + +DEFINE_TEST(Client) |