summaryrefslogtreecommitdiff
path: root/cppe/test/IceE/location/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cppe/test/IceE/location/Client.cpp')
-rw-r--r--cppe/test/IceE/location/Client.cpp108
1 files changed, 0 insertions, 108 deletions
diff --git a/cppe/test/IceE/location/Client.cpp b/cppe/test/IceE/location/Client.cpp
deleted file mode 100644
index c8f8048ecc3..00000000000
--- a/cppe/test/IceE/location/Client.cpp
+++ /dev/null
@@ -1,108 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.
-//
-// This copy of Ice-E is licensed to you under the terms described in the
-// ICEE_LICENSE file included in this distribution.
-//
-// **********************************************************************
-
-#include <IceE/IceE.h>
-
-#ifdef ICEE_HAS_LOCATOR
-
-#include <TestApplication.h>
-#include <Test.h>
-
-using namespace std;
-
-class LocationTestApplication : public TestApplication
-{
-public:
-
- LocationTestApplication() :
- TestApplication("location client")
- {
- }
-
- virtual int
- run(int argc, char* argv[])
- {
- Ice::InitializationData initData;
- initData.properties = Ice::createProperties(argc, argv);
- loadConfig(initData.properties);
-
- //
- // For blocking client change retry interval from default.
- //
- if(initData.properties->getPropertyAsInt("Ice.Blocking") > 0)
- {
- initData.properties->setProperty("Ice.RetryIntervals", "0 0");
- initData.properties->setProperty("Ice.Warn.Connections", "0");
- }
-
- initData.properties->setProperty("Ice.Default.Locator",
- initData.properties->getPropertyWithDefault("Location.Locator", "locator:default -p 12010"));
- initData.logger = getLogger();
- setCommunicator(Ice::initialize(argc, argv, initData));
-
- void allTests(const Ice::CommunicatorPtr&);
- allTests(communicator());
-
- return EXIT_SUCCESS;
- }
-
-};
-
-#ifdef _WIN32_WCE
-
-int WINAPI
-WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
-{
- LocationTestApplication app;
- return app.main(hInstance);
-}
-
-#else
-
-int
-main(int argc, char** argv)
-{
- LocationTestApplication app;
- return app.main(argc, argv);
-}
-
-#endif
-
-#else
-
-#include <TestCommon.h>
-
-#ifdef _WIN32_WCE
-
-int WINAPI
-WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
-{
- tprintf("Adapter Ready\n");
-
- return 0;
-}
-
-#else
-
-int
-main(int argc, char* argv[])
-{
-#ifdef _WIN32
- tprintf("%d\n", _getpid());
-#else
- tprintf("%d\n", getpid());
-#endif
- tprintf("Adapter Ready\n");
-
- return 0;
-}
-
-#endif
-
-#endif