diff options
author | Mark Spruiell <mes@zeroc.com> | 2012-05-08 18:14:39 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2012-05-08 18:14:39 -0700 |
commit | 7774bb92669779fd165a0510a360fdaecd69f0c3 (patch) | |
tree | 8ea8bba6cac4128cd3e511ff21534db130ff8e49 /cpp/test/Ice/slicing/exceptions/TestAMDI.cpp | |
parent | Fixed ICE-4709, batch requests and UnmarshalOutOfBoundsException (diff) | |
download | ice-7774bb92669779fd165a0510a360fdaecd69f0c3.tar.bz2 ice-7774bb92669779fd165a0510a360fdaecd69f0c3.tar.xz ice-7774bb92669779fd165a0510a360fdaecd69f0c3.zip |
* C++ implementation for compact/sliced formats
* C++ implementation for "preserve-slice" metadata
* C++ tests for compact/sliced/preserved types
* Updated stream API
* Python changes for stream API
* Python tests for compact/sliced formats
* Added Ice.Default.SlicedFormat property
Diffstat (limited to 'cpp/test/Ice/slicing/exceptions/TestAMDI.cpp')
-rw-r--r-- | cpp/test/Ice/slicing/exceptions/TestAMDI.cpp | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/cpp/test/Ice/slicing/exceptions/TestAMDI.cpp b/cpp/test/Ice/slicing/exceptions/TestAMDI.cpp index 789eb9b47a4..c9ce7a80396 100644 --- a/cpp/test/Ice/slicing/exceptions/TestAMDI.cpp +++ b/cpp/test/Ice/slicing/exceptions/TestAMDI.cpp @@ -144,6 +144,73 @@ TestI::unknownMostDerived2AsBase_async(const AMD_TestIntf_unknownMostDerived2AsB } void +TestI::unknownMostDerived2AsBaseCompact_async(const AMD_TestIntf_unknownMostDerived2AsBaseCompactPtr& cb, + const ::Ice::Current&) +{ + UnknownMostDerived2 umd2; + umd2.b = "UnknownMostDerived2.b"; + umd2.ui = "UnknownMostDerived2.ui"; + umd2.umd2 = "UnknownMostDerived2.umd2"; + cb->ice_exception(umd2); +} + +void +TestI::relayKnownPreservedAsBase_async(const AMD_TestIntf_relayKnownPreservedAsBasePtr& cb, const RelayPrx& r, + const ::Ice::Current&) +{ + try + { + r->knownPreservedAsBase(); + } + catch(const Ice::Exception& ex) + { + cb->ice_exception(ex); + } +} + +void +TestI::relayKnownPreservedAsKnownPreserved_async(const AMD_TestIntf_relayKnownPreservedAsKnownPreservedPtr& cb, + const RelayPrx& r, const ::Ice::Current&) +{ + try + { + r->knownPreservedAsKnownPreserved(); + } + catch(const Ice::Exception& ex) + { + cb->ice_exception(ex); + } +} + +void +TestI::relayUnknownPreservedAsBase_async(const AMD_TestIntf_relayUnknownPreservedAsBasePtr& cb, const RelayPrx& r, + const ::Ice::Current&) +{ + try + { + r->unknownPreservedAsBase(); + } + catch(const Ice::Exception& ex) + { + cb->ice_exception(ex); + } +} + +void +TestI::relayUnknownPreservedAsKnownPreserved_async(const AMD_TestIntf_relayUnknownPreservedAsKnownPreservedPtr& cb, + const RelayPrx& r, const ::Ice::Current&) +{ + try + { + r->unknownPreservedAsKnownPreserved(); + } + catch(const Ice::Exception& ex) + { + cb->ice_exception(ex); + } +} + +void TestI::shutdown_async(const AMD_TestIntf_shutdownPtr& cb, const ::Ice::Current& current) { current.adapter->getCommunicator()->shutdown(); |