diff options
Diffstat (limited to 'cpp/test/Ice/operations/TestAMDI.cpp')
-rw-r--r-- | cpp/test/Ice/operations/TestAMDI.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cpp/test/Ice/operations/TestAMDI.cpp b/cpp/test/Ice/operations/TestAMDI.cpp index c0ecb21857b..0127f931826 100644 --- a/cpp/test/Ice/operations/TestAMDI.cpp +++ b/cpp/test/Ice/operations/TestAMDI.cpp @@ -99,6 +99,17 @@ MyDerivedClassI::shutdownAsync(function<void()> response, } void +MyDerivedClassI::supportsCompressAsync(std::function<void(bool)> response, + std::function<void(std::exception_ptr)>, const Ice::Current&) +{ +#if defined(ICE_OS_UWP) + response(false); +#else + response(true); +#endif +} + +void MyDerivedClassI::opVoidAsync(function<void()> response, function<void(exception_ptr)>, const Ice::Current& current) @@ -1072,6 +1083,17 @@ MyDerivedClassI::shutdown_async(const Test::AMD_MyClass_shutdownPtr& cb, const I } void +MyDerivedClassI::supportsCompress_async(const Test::AMD_MyClass_supportsCompressPtr& cb, + const Ice::Current&) +{ +#if defined(ICE_OS_UWP) + cb->ice_response(false); +#else + cb->ice_response(true); +#endif +} + +void MyDerivedClassI::opVoid_async(const Test::AMD_MyClass_opVoidPtr& cb, const Ice::Current& current) { test(current.mode == ICE_ENUM(OperationMode, Normal)); |