From a5854cfd05fa6aa5b7cc50ecbfcc9336fb32412c Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Tue, 13 Nov 2018 15:52:14 -0500 Subject: More bidir tests. Fixes #51. --- cpp/test/Ice/ami/TestI.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'cpp/test/Ice/ami/TestI.cpp') diff --git a/cpp/test/Ice/ami/TestI.cpp b/cpp/test/Ice/ami/TestI.cpp index 0e3f5f9bed6..587b9d45ed0 100644 --- a/cpp/test/Ice/ami/TestI.cpp +++ b/cpp/test/Ice/ami/TestI.cpp @@ -193,9 +193,15 @@ TestIntfI::supportsFunctionalTests(const Ice::Current&) } void -TestIntfI::pingBiDir(ICE_IN(Ice::Identity) id, const Ice::Current& current) +TestIntfI::pingBiDir(ICE_IN(Test::PingReplyPrxPtr) reply, const Ice::Current& current) { - ICE_UNCHECKED_CAST(Test::PingReplyPrx, current.con->createProxy(id))->reply(); +#ifdef ICE_CPP11_MAPPING + reply->ice_fixed(current.con)->replyAsync().get(); +#else + Test::PingReplyPrx fprx = reply->ice_fixed(current.con); + Ice::AsyncResultPtr result = fprx->begin_reply(); + fprx->end_reply(result); +#endif } void -- cgit v1.2.3