diff options
author | Bernard Normier <bernard@zeroc.com> | 2012-09-19 12:00:52 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2012-09-19 12:09:56 -0400 |
commit | 2068ac0ec6ce1f239abc73ff23407326ba33ffbf (patch) | |
tree | 110b52821232cdc5ffb1d6cd4f5f2110ed520f4d /cpp/test/Ice/custom/TestAMDI.cpp | |
parent | Python support for optionals (diff) | |
download | ice-2068ac0ec6ce1f239abc73ff23407326ba33ffbf.tar.bz2 ice-2068ac0ec6ce1f239abc73ff23407326ba33ffbf.tar.xz ice-2068ac0ec6ce1f239abc73ff23407326ba33ffbf.zip |
Partial fix for ICE-3393:
- strealined StreamTraits.h
- added ability to define custom dictionaries in C++ (with cpp:type:...)
- added tests for custom dictionaries in test/Ice/custom
Fixed ICE-4867:
- clear parameter before unmarshaling into dictionary/map in C++
- added test
Diffstat (limited to 'cpp/test/Ice/custom/TestAMDI.cpp')
-rw-r--r-- | cpp/test/Ice/custom/TestAMDI.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cpp/test/Ice/custom/TestAMDI.cpp b/cpp/test/Ice/custom/TestAMDI.cpp index 79c1ac30e31..d8624cf48ea 100644 --- a/cpp/test/Ice/custom/TestAMDI.cpp +++ b/cpp/test/Ice/custom/TestAMDI.cpp @@ -308,6 +308,28 @@ TestIntfI::opOutRangeByteSeq_async(const ::Test::AMD_TestIntf_opOutRangeByteSeqP ::Test::ByteSeq::const_iterator>(inS.begin(), inS.end())); } +void +TestIntfI::opIntStringDict_async(const ::Test::AMD_TestIntf_opIntStringDictPtr& cb, + const ::Test::IntStringDict& inDict, + const ::Ice::Current&) +{ + cb->ice_response(inDict, inDict); +} + +void +TestIntfI::opVarDict_async(const ::Test::AMD_TestIntf_opVarDictPtr& cb, + const ::Test::CustomMap<std::string, Ice::Int>& inDict, + const ::Ice::Current&) +{ + Test::CustomMap<Ice::Long, Ice::Long> result; + for(Ice::Long i = 0; i < 1000; ++i) + { + result[i] = i*i; + } + cb->ice_response(result, inDict); +} + + void TestIntfI::shutdown_async(const Test::AMD_TestIntf_shutdownPtr& shutdownCB, const Ice::Current& current) |