diff options
author | Marc Laukien <marc@zeroc.com> | 2001-09-16 20:11:25 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-09-16 20:11:25 +0000 |
commit | c4fc439d096dc506c503b5cecb2e9a3cf86f6276 (patch) | |
tree | 53e755a2c697eebc0163668a7390fd615cc2b968 /cpp/test | |
parent | fixes for windows (diff) | |
download | ice-c4fc439d096dc506c503b5cecb2e9a3cf86f6276.tar.bz2 ice-c4fc439d096dc506c503b5cecb2e9a3cf86f6276.tar.xz ice-c4fc439d096dc506c503b5cecb2e9a3cf86f6276.zip |
fixes
Diffstat (limited to 'cpp/test')
24 files changed, 36 insertions, 36 deletions
diff --git a/cpp/test/Ice/exceptions/AllTests.cpp b/cpp/test/Ice/exceptions/AllTests.cpp index c80231c67e9..2a067ee3aec 100644 --- a/cpp/test/Ice/exceptions/AllTests.cpp +++ b/cpp/test/Ice/exceptions/AllTests.cpp @@ -15,7 +15,7 @@ using namespace std; ThrowerPrx -allTests(Ice::CommunicatorPtr communicator) +allTests(const Ice::CommunicatorPtr& communicator) { cout << "testing stringToProxy... " << flush; string ref("thrower:tcp -p 12345 -t 2000"); diff --git a/cpp/test/Ice/exceptions/Client.cpp b/cpp/test/Ice/exceptions/Client.cpp index 033e9929d48..fa06f9a9f3d 100644 --- a/cpp/test/Ice/exceptions/Client.cpp +++ b/cpp/test/Ice/exceptions/Client.cpp @@ -15,9 +15,9 @@ using namespace std; int -run(int argc, char* argv[], Ice::CommunicatorPtr communicator) +run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { - ThrowerPrx allTests(Ice::CommunicatorPtr); + ThrowerPrx allTests(const Ice::CommunicatorPtr&); ThrowerPrx thrower = allTests(communicator); thrower->shutdown(); return EXIT_SUCCESS; diff --git a/cpp/test/Ice/exceptions/Collocated.cpp b/cpp/test/Ice/exceptions/Collocated.cpp index c79ef8c989e..63a8fda6ccf 100644 --- a/cpp/test/Ice/exceptions/Collocated.cpp +++ b/cpp/test/Ice/exceptions/Collocated.cpp @@ -14,14 +14,14 @@ using namespace std; int -run(int argc, char* argv[], Ice::CommunicatorPtr communicator) +run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { string endpts("tcp -p 12345 -t 2000"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("TestAdapter", endpts); Ice::ObjectPtr object = new ThrowerI(adapter); adapter->add(object, "thrower"); - ThrowerPrx allTests(Ice::CommunicatorPtr); + ThrowerPrx allTests(const Ice::CommunicatorPtr&); allTests(communicator); return EXIT_SUCCESS; diff --git a/cpp/test/Ice/exceptions/Server.cpp b/cpp/test/Ice/exceptions/Server.cpp index 3789d6fa6b2..4e3a05e3328 100644 --- a/cpp/test/Ice/exceptions/Server.cpp +++ b/cpp/test/Ice/exceptions/Server.cpp @@ -14,7 +14,7 @@ using namespace std; int -run(int argc, char* argv[], Ice::CommunicatorPtr communicator) +run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { string endpts("tcp -p 12345 -t 2000"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("TestAdapter", endpts); diff --git a/cpp/test/Ice/faultTolerance/AllTests.cpp b/cpp/test/Ice/faultTolerance/AllTests.cpp index 8acbf478e9d..14135ddfabb 100644 --- a/cpp/test/Ice/faultTolerance/AllTests.cpp +++ b/cpp/test/Ice/faultTolerance/AllTests.cpp @@ -16,7 +16,7 @@ using namespace std; void -allTests(Ice::CommunicatorPtr communicator, const vector<int>& ports) +allTests(const Ice::CommunicatorPtr& communicator, const vector<int>& ports) { cout << "testing stringToProxy... " << flush; ostringstream ref; diff --git a/cpp/test/Ice/faultTolerance/Client.cpp b/cpp/test/Ice/faultTolerance/Client.cpp index a5c488e9486..fcedc08778c 100644 --- a/cpp/test/Ice/faultTolerance/Client.cpp +++ b/cpp/test/Ice/faultTolerance/Client.cpp @@ -21,7 +21,7 @@ usage(const char* n) } int -run(int argc, char* argv[], Ice::CommunicatorPtr communicator) +run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { vector<int> ports; for (int i = 1; i < argc; ++i) @@ -43,7 +43,7 @@ run(int argc, char* argv[], Ice::CommunicatorPtr communicator) return EXIT_FAILURE; } - void allTests(Ice::CommunicatorPtr, const vector<int>&); + void allTests(const Ice::CommunicatorPtr, const vector<int>&&); allTests(communicator, ports); return EXIT_SUCCESS; } diff --git a/cpp/test/Ice/faultTolerance/Server.cpp b/cpp/test/Ice/faultTolerance/Server.cpp index 61795f3b5b8..8140ee5f1a6 100644 --- a/cpp/test/Ice/faultTolerance/Server.cpp +++ b/cpp/test/Ice/faultTolerance/Server.cpp @@ -21,7 +21,7 @@ usage(const char* n) } int -run(int argc, char* argv[], Ice::CommunicatorPtr communicator) +run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { int port = 0; for (int i = 1; i < argc; ++i) diff --git a/cpp/test/Ice/inheritance/AllTests.cpp b/cpp/test/Ice/inheritance/AllTests.cpp index 5b29aa4d83f..b4d6fb14d42 100644 --- a/cpp/test/Ice/inheritance/AllTests.cpp +++ b/cpp/test/Ice/inheritance/AllTests.cpp @@ -15,7 +15,7 @@ using namespace std; InitialPrx -allTests(Ice::CommunicatorPtr communicator) +allTests(const Ice::CommunicatorPtr& communicator) { cout << "testing stringToProxy... " << flush; string ref("initial:tcp -p 12345 -t 2000"); diff --git a/cpp/test/Ice/inheritance/Client.cpp b/cpp/test/Ice/inheritance/Client.cpp index 28aa409f55e..b4bc3978387 100644 --- a/cpp/test/Ice/inheritance/Client.cpp +++ b/cpp/test/Ice/inheritance/Client.cpp @@ -15,9 +15,9 @@ using namespace std; int -run(int argc, char* argv[], Ice::CommunicatorPtr communicator) +run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { - InitialPrx allTests(Ice::CommunicatorPtr); + InitialPrx allTests(const Ice::CommunicatorPtr&); InitialPrx initial = allTests(communicator); initial->shutdown(); return EXIT_SUCCESS; diff --git a/cpp/test/Ice/inheritance/Collocated.cpp b/cpp/test/Ice/inheritance/Collocated.cpp index ddac110a51b..63b9d8ffb00 100644 --- a/cpp/test/Ice/inheritance/Collocated.cpp +++ b/cpp/test/Ice/inheritance/Collocated.cpp @@ -14,14 +14,14 @@ using namespace std; int -run(int argc, char* argv[], Ice::CommunicatorPtr communicator) +run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { string endpts("tcp -p 12345 -t 2000"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("TestAdapter", endpts); Ice::ObjectPtr object = new InitialI(adapter); adapter->add(object, "initial"); - InitialPrx allTests(Ice::CommunicatorPtr); + InitialPrx allTests(const Ice::CommunicatorPtr&); allTests(communicator); return EXIT_SUCCESS; diff --git a/cpp/test/Ice/inheritance/Server.cpp b/cpp/test/Ice/inheritance/Server.cpp index 9468768ebfd..1d42278c8b1 100644 --- a/cpp/test/Ice/inheritance/Server.cpp +++ b/cpp/test/Ice/inheritance/Server.cpp @@ -14,7 +14,7 @@ using namespace std; int -run(int argc, char* argv[], Ice::CommunicatorPtr communicator) +run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { string endpts("tcp -p 12345 -t 2000"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("TestAdapter", endpts); diff --git a/cpp/test/Ice/locationForward/AllTests.cpp b/cpp/test/Ice/locationForward/AllTests.cpp index c8bb3a865f1..c8dcecce4c0 100644 --- a/cpp/test/Ice/locationForward/AllTests.cpp +++ b/cpp/test/Ice/locationForward/AllTests.cpp @@ -16,7 +16,7 @@ using namespace std; void -allTests(Ice::CommunicatorPtr communicator, int port, int lastPort) +allTests(const Ice::CommunicatorPtr& communicator, int port, int lastPort) { cout << "testing stringToProxy... " << flush; ostringstream ref; diff --git a/cpp/test/Ice/locationForward/Client.cpp b/cpp/test/Ice/locationForward/Client.cpp index 266789f30a0..15b528933fb 100644 --- a/cpp/test/Ice/locationForward/Client.cpp +++ b/cpp/test/Ice/locationForward/Client.cpp @@ -21,7 +21,7 @@ usage(const char* n) } int -run(int argc, char* argv[], Ice::CommunicatorPtr communicator) +run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { int port = 0; int lastPort = 0; @@ -57,7 +57,7 @@ run(int argc, char* argv[], Ice::CommunicatorPtr communicator) return EXIT_FAILURE; } - void allTests(Ice::CommunicatorPtr, int, int); + void allTests(const Ice::CommunicatorPtr, int, int&); allTests(communicator, port, lastPort); return EXIT_SUCCESS; } diff --git a/cpp/test/Ice/locationForward/Server.cpp b/cpp/test/Ice/locationForward/Server.cpp index 2157d7c9556..2627d5f023d 100644 --- a/cpp/test/Ice/locationForward/Server.cpp +++ b/cpp/test/Ice/locationForward/Server.cpp @@ -21,7 +21,7 @@ usage(const char* n) } int -run(int argc, char* argv[], Ice::CommunicatorPtr communicator) +run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { int port = 0; Ice::ObjectPrx fwd; diff --git a/cpp/test/Ice/operations/AllTests.cpp b/cpp/test/Ice/operations/AllTests.cpp index 2b9ca0e1558..c1174c5f926 100644 --- a/cpp/test/Ice/operations/AllTests.cpp +++ b/cpp/test/Ice/operations/AllTests.cpp @@ -15,7 +15,7 @@ using namespace std; Test::MyClassPrx -allTests(Ice::CommunicatorPtr communicator) +allTests(const Ice::CommunicatorPtr& communicator) { cout << "testing stringToProxy... " << flush; string ref("test:tcp -p 12345 -t 2000"); @@ -34,14 +34,14 @@ allTests(Ice::CommunicatorPtr communicator) cout << "ok" << endl; cout << "testing twoway operations... " << flush; - void twoways(Test::MyClassPrx); + void twoways(const Test::MyClassPrx&); twoways(cl); twoways(derived); derived->opDerived(); cout << "ok" << endl; cout << "testing exceptions... " << flush; - void exceptions(Test::MyClassPrx); + void exceptions(const Test::MyClassPrx&); exceptions(cl); cout << "ok" << endl; diff --git a/cpp/test/Ice/operations/Client.cpp b/cpp/test/Ice/operations/Client.cpp index a7ea950191e..26d25217968 100644 --- a/cpp/test/Ice/operations/Client.cpp +++ b/cpp/test/Ice/operations/Client.cpp @@ -15,9 +15,9 @@ using namespace std; int -run(int argc, char* argv[], Ice::CommunicatorPtr communicator) +run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { - Test::MyClassPrx allTests(Ice::CommunicatorPtr); + Test::MyClassPrx allTests(const Ice::CommunicatorPtr&); Test::MyClassPrx myClass = allTests(communicator); cout << "testing server shutdown... " << flush; diff --git a/cpp/test/Ice/operations/Collocated.cpp b/cpp/test/Ice/operations/Collocated.cpp index aa71e68397b..a266c7bdf0b 100644 --- a/cpp/test/Ice/operations/Collocated.cpp +++ b/cpp/test/Ice/operations/Collocated.cpp @@ -14,14 +14,14 @@ using namespace std; int -run(int argc, char* argv[], Ice::CommunicatorPtr communicator) +run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { string endpts("tcp -p 12345 -t 2000"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("TestAdapter", endpts); Ice::ObjectPtr object = new MyDerivedClassI(adapter, "test"); adapter->add(object, "test"); - Test::MyClassPrx allTests(Ice::CommunicatorPtr); + Test::MyClassPrx allTests(const Ice::CommunicatorPtr&); allTests(communicator); return EXIT_SUCCESS; diff --git a/cpp/test/Ice/operations/Exceptions.cpp b/cpp/test/Ice/operations/Exceptions.cpp index 3a364d6b72e..8f55a9aceeb 100644 --- a/cpp/test/Ice/operations/Exceptions.cpp +++ b/cpp/test/Ice/operations/Exceptions.cpp @@ -15,7 +15,7 @@ using namespace std; void -exceptions(Test::MyClassPrx p) +exceptions(const Test::MyClassPrx& p) { p->opEx(0); diff --git a/cpp/test/Ice/operations/Server.cpp b/cpp/test/Ice/operations/Server.cpp index 009a01008e6..1a99bc502fb 100644 --- a/cpp/test/Ice/operations/Server.cpp +++ b/cpp/test/Ice/operations/Server.cpp @@ -14,7 +14,7 @@ using namespace std; int -run(int argc, char* argv[], Ice::CommunicatorPtr communicator) +run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { string endpts("tcp -p 12345 -t 2000"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("TestAdapter", endpts); diff --git a/cpp/test/Ice/operations/Twoways.cpp b/cpp/test/Ice/operations/Twoways.cpp index e739bebd9d2..12cb2af9dec 100644 --- a/cpp/test/Ice/operations/Twoways.cpp +++ b/cpp/test/Ice/operations/Twoways.cpp @@ -26,7 +26,7 @@ using namespace std; void -twoways(Test::MyClassPrx p) +twoways(const Test::MyClassPrx& p) { { p->opVoid(); diff --git a/cpp/test/IcePack/simple/AllTests.cpp b/cpp/test/IcePack/simple/AllTests.cpp index b48bc16f91a..56c1605399b 100644 --- a/cpp/test/IcePack/simple/AllTests.cpp +++ b/cpp/test/IcePack/simple/AllTests.cpp @@ -16,7 +16,7 @@ using namespace std; TestPrx -allTests(Ice::CommunicatorPtr communicator) +allTests(const Ice::CommunicatorPtr& communicator) { cout << "testing stringToProxy... " << flush; string ref("test:tcp -p 12346 -t 5000"); diff --git a/cpp/test/IcePack/simple/Client.cpp b/cpp/test/IcePack/simple/Client.cpp index 3ae77a6499d..34292b65f81 100644 --- a/cpp/test/IcePack/simple/Client.cpp +++ b/cpp/test/IcePack/simple/Client.cpp @@ -15,9 +15,9 @@ using namespace std; int -run(int argc, char* argv[], Ice::CommunicatorPtr communicator) +run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { - TestPrx allTests(Ice::CommunicatorPtr); + TestPrx allTests(const Ice::CommunicatorPtr&); TestPrx obj = allTests(communicator); cout << "shutting down server... " << flush; diff --git a/cpp/test/IcePack/simple/Collocated.cpp b/cpp/test/IcePack/simple/Collocated.cpp index 5c02cfc2e94..eba91ca4924 100644 --- a/cpp/test/IcePack/simple/Collocated.cpp +++ b/cpp/test/IcePack/simple/Collocated.cpp @@ -14,14 +14,14 @@ using namespace std; int -run(int argc, char* argv[], Ice::CommunicatorPtr communicator) +run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { string endpts("tcp -p 12345 -t 5000"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("TestAdapter", endpts); Ice::ObjectPtr object = new TestI(adapter); adapter->add(object, "test"); - TestPrx allTests(Ice::CommunicatorPtr); + TestPrx allTests(const Ice::CommunicatorPtr&); allTests(communicator); return EXIT_SUCCESS; } diff --git a/cpp/test/IcePack/simple/Server.cpp b/cpp/test/IcePack/simple/Server.cpp index 3ec39518793..d84f763e582 100644 --- a/cpp/test/IcePack/simple/Server.cpp +++ b/cpp/test/IcePack/simple/Server.cpp @@ -14,7 +14,7 @@ using namespace std; int -run(int argc, char* argv[], Ice::CommunicatorPtr communicator) +run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { string endpts("tcp -p 12345 -t 5000"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("TestAdapter", endpts); |