diff options
author | Benoit Foucher <benoit@zeroc.com> | 2012-06-20 10:42:48 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2012-06-20 10:42:48 +0200 |
commit | eddcd80c0a9c29bc7c807db3ccf0e1e3484ac43f (patch) | |
tree | 1e4575ae28d98639018bdd23c38a6702d162e6a2 /cpp/test/Ice/slicing/objects/TestAMDI.cpp | |
parent | * Grammar fixes (diff) | |
download | ice-eddcd80c0a9c29bc7c807db3ccf0e1e3484ac43f.tar.bz2 ice-eddcd80c0a9c29bc7c807db3ccf0e1e3484ac43f.tar.xz ice-eddcd80c0a9c29bc7c807db3ccf0e1e3484ac43f.zip |
Don't write optionals with 1.0 encoding, added UnknownSlicedObject test, fixed exception un-marhsalling to raise UnkownUserException for unknown exceptions.
Diffstat (limited to 'cpp/test/Ice/slicing/objects/TestAMDI.cpp')
-rw-r--r-- | cpp/test/Ice/slicing/objects/TestAMDI.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cpp/test/Ice/slicing/objects/TestAMDI.cpp b/cpp/test/Ice/slicing/objects/TestAMDI.cpp index b8ce7b87b22..6c4582bf053 100644 --- a/cpp/test/Ice/slicing/objects/TestAMDI.cpp +++ b/cpp/test/Ice/slicing/objects/TestAMDI.cpp @@ -80,6 +80,24 @@ TestI::SUnknownAsObject_async(const AMD_TestIntf_SUnknownAsObjectPtr& cb, const } void +TestI::checkSUnknown_async(const AMD_TestIntf_checkSUnknownPtr& cb, + const Ice::ObjectPtr& obj, + const ::Ice::Current& current) +{ + SUnknownPtr su = SUnknownPtr::dynamicCast(obj); + if(current.encoding == Ice::Encoding_1_0) + { + test(!su); + } + else + { + test(su); + test(su->su == "SUnknown.su"); + } + cb->ice_response(); +} + +void TestI::oneElementCycle_async(const AMD_TestIntf_oneElementCyclePtr& cb, const ::Ice::Current&) { BPtr b = new B; |