diff options
author | Matthew Newhook <matthew@zeroc.com> | 2005-07-15 15:47:09 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2005-07-15 15:47:09 +0000 |
commit | bc02b784807e8d979acb3a628039eaf6b5aefb75 (patch) | |
tree | dc489510e9bc4c18e24c5459cc2a029e64688a75 /cppe/test/IceE/operations/Client.cpp | |
parent | add hello world client midlet (diff) | |
download | ice-bc02b784807e8d979acb3a628039eaf6b5aefb75.tar.bz2 ice-bc02b784807e8d979acb3a628039eaf6b5aefb75.tar.xz ice-bc02b784807e8d979acb3a628039eaf6b5aefb75.zip |
Updated README. Fixed MFC screen size. Fixed test suite screen size.
Started mods for using an optional configuration file.
Diffstat (limited to 'cppe/test/IceE/operations/Client.cpp')
-rw-r--r-- | cppe/test/IceE/operations/Client.cpp | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/cppe/test/IceE/operations/Client.cpp b/cppe/test/IceE/operations/Client.cpp index cd49502a6cd..6ca7c4fd25c 100644 --- a/cppe/test/IceE/operations/Client.cpp +++ b/cppe/test/IceE/operations/Client.cpp @@ -8,7 +8,7 @@ // ********************************************************************** #include <IceE/IceE.h> -#include <TestCommon.h>
+#include <TestCommon.h> #include <TestApplication.h> #include <Test.h> @@ -17,27 +17,34 @@ using namespace std; class OperationsTestApplication : public TestApplication { public: -
- OperationsTestApplication() :
- TestApplication("operations client")
- {
- }
+ + OperationsTestApplication() : + TestApplication("operations client") + { + } virtual int run(int argc, char* argv[]) { - Ice::PropertiesPtr properties = Ice::getDefaultProperties(argc, argv); - + Ice::PropertiesPtr properties = Ice::createProperties(); // // We must set MessageSizeMax to an explicit values, because // we run tests to check whether IceE.MemoryLimitException is // raised as expected. // - properties->setProperty("IceE.MessageSizeMax", "100");
- //properties->setProperty("IceE.Trace.Network", "5");
+ properties->setProperty("IceE.MessageSizeMax", "100"); + //properties->setProperty("IceE.Trace.Network", "5"); //properties->setProperty("IceE.Trace.Protocol", "5"); - setCommunicator(Ice::initialize(argc, argv)); + try + { + properties->load("config"); + } + catch(const Ice::FileException&) + { + } + + setCommunicator(Ice::initializeWithProperties(argc, argv, properties)); Test::MyClassPrx allTests(const Ice::CommunicatorPtr&); Test::MyClassPrx myClass = allTests(communicator()); @@ -56,7 +63,7 @@ public: return EXIT_SUCCESS; } }; -
+ #ifdef _WIN32_WCE int WINAPI |