diff options
author | Matthew Newhook <matthew@zeroc.com> | 2007-05-01 06:35:20 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2007-05-01 06:35:20 +0000 |
commit | 1beed4be7d6576b14dc685e3cb4e2a26fc17e50b (patch) | |
tree | 906ea9ad9ae3c8194246a2f44678684c6df74230 /cpp/test/Ice/operations/TestI.cpp | |
parent | remove timeout test from proxy test. Cleanup of operations test. (diff) | |
download | ice-1beed4be7d6576b14dc685e3cb4e2a26fc17e50b.tar.bz2 ice-1beed4be7d6576b14dc685e3cb4e2a26fc17e50b.tar.xz ice-1beed4be7d6576b14dc685e3cb4e2a26fc17e50b.zip |
remove timeout test from proxy test. Cleanup of operations test.
Diffstat (limited to 'cpp/test/Ice/operations/TestI.cpp')
-rw-r--r-- | cpp/test/Ice/operations/TestI.cpp | 41 |
1 files changed, 6 insertions, 35 deletions
diff --git a/cpp/test/Ice/operations/TestI.cpp b/cpp/test/Ice/operations/TestI.cpp index e6415f93a87..9830ce1931c 100644 --- a/cpp/test/Ice/operations/TestI.cpp +++ b/cpp/test/Ice/operations/TestI.cpp @@ -16,16 +16,10 @@ # include <iterator> #endif -MyDerivedClassI::MyDerivedClassI(const Ice::ObjectAdapterPtr& adapter, const Ice::Identity& identity) : - _adapter(adapter), - _identity(identity) -{ -} - void -MyDerivedClassI::shutdown(const Ice::Current&) +MyDerivedClassI::shutdown(const Ice::Current& current) { - _adapter->getCommunicator()->shutdown(); + current.adapter->getCommunicator()->shutdown(); } void @@ -33,12 +27,6 @@ MyDerivedClassI::opVoid(const Ice::Current&) { } -void -MyDerivedClassI::opSleep(int duration, const Ice::Current&) -{ - IceUtil::ThreadControl::sleep(IceUtil::Time::milliSeconds(duration)); -} - Ice::Byte MyDerivedClassI::opByte(Ice::Byte p1, Ice::Byte p2, @@ -109,12 +97,12 @@ Test::MyClassPrx MyDerivedClassI::opMyClass(const Test::MyClassPrx& p1, Test::MyClassPrx& p2, Test::MyClassPrx& p3, - const Ice::Current&) + const Ice::Current& current) { p2 = p1; - p3 = Test::MyClassPrx::uncheckedCast(_adapter->createProxy( - _adapter->getCommunicator()->stringToIdentity("noSuchIdentity"))); - return Test::MyClassPrx::uncheckedCast(_adapter->createProxy(_identity)); + p3 = Test::MyClassPrx::uncheckedCast(current.adapter->createProxy( + current.adapter->getCommunicator()->stringToIdentity("noSuchIdentity"))); + return Test::MyClassPrx::uncheckedCast(current.adapter->createProxy(current.id)); } Test::Structure @@ -382,20 +370,3 @@ void MyDerivedClassI::opDerived(const Ice::Current&) { } - -Ice::Context -TestCheckedCastI::getContext(const Ice::Current& c) -{ - return _ctx; -} - -bool -TestCheckedCastI::ice_isA(const std::string& s, const Ice::Current& current) const -{ - _ctx = current.ctx; -#ifdef __BCPLUSPLUS__ - return Test::TestCheckedCast::ice_isA(s, current); -#else - return TestCheckedCast::ice_isA(s, current); -#endif -} |