summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/operations/TestAMDI.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2018-02-13 12:35:22 +0100
committerBenoit Foucher <benoit@zeroc.com>2018-02-13 14:15:36 +0100
commit9358fdee4360f40451641f49fcd38b177f93c4ad (patch)
tree8ff4ec1deb284d1c4335c9ea3a57c12ee4c2953d /cpp/test/Ice/operations/TestAMDI.cpp
parentFix building PHP with Windows C++ NuGet packages (diff)
downloadice-9358fdee4360f40451641f49fcd38b177f93c4ad.tar.bz2
ice-9358fdee4360f40451641f49fcd38b177f93c4ad.tar.xz
ice-9358fdee4360f40451641f49fcd38b177f93c4ad.zip
Fixed UWP cross operation test failure
Diffstat (limited to 'cpp/test/Ice/operations/TestAMDI.cpp')
-rw-r--r--cpp/test/Ice/operations/TestAMDI.cpp22
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));