summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/binding/Client.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-02-10 16:41:42 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-02-10 16:41:42 +0000
commit5d0005ecc2e7b0b468ef49297a02cf5ec8fd31fe (patch)
tree09583bad00eb87888e2881d4abd58b2d05ac2344 /cpp/test/Ice/binding/Client.cpp
parentChanged Ice-E version to 1.1.0 (diff)
downloadice-5d0005ecc2e7b0b468ef49297a02cf5ec8fd31fe.tar.bz2
ice-5d0005ecc2e7b0b468ef49297a02cf5ec8fd31fe.tar.xz
ice-5d0005ecc2e7b0b468ef49297a02cf5ec8fd31fe.zip
- Added ice_cacheConnection, ice_endpointSelection proxy methods.
- Added binding test.
Diffstat (limited to 'cpp/test/Ice/binding/Client.cpp')
-rw-r--r--cpp/test/Ice/binding/Client.cpp55
1 files changed, 55 insertions, 0 deletions
diff --git a/cpp/test/Ice/binding/Client.cpp b/cpp/test/Ice/binding/Client.cpp
new file mode 100644
index 00000000000..4e4c921ec05
--- /dev/null
+++ b/cpp/test/Ice/binding/Client.cpp
@@ -0,0 +1,55 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2005 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+#include <Ice/Ice.h>
+#include <TestCommon.h>
+#include <Test.h>
+
+using namespace std;
+
+int
+run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
+{
+ void allTests(const Ice::CommunicatorPtr&);
+ allTests(communicator);
+ return EXIT_SUCCESS;
+}
+
+int
+main(int argc, char* argv[])
+{
+ int status;
+ Ice::CommunicatorPtr communicator;
+
+ try
+ {
+ communicator = Ice::initialize(argc, argv);
+ status = run(argc, argv, communicator);
+ }
+ catch(const Ice::Exception& ex)
+ {
+ cerr << ex << endl;
+ status = EXIT_FAILURE;
+ }
+
+ if(communicator)
+ {
+ try
+ {
+ communicator->destroy();
+ }
+ catch(const Ice::Exception& ex)
+ {
+ cerr << ex << endl;
+ status = EXIT_FAILURE;
+ }
+ }
+
+ return status;
+}