diff options
Diffstat (limited to 'cpp/test/Ice/proxy/AllTests.cpp')
-rw-r--r-- | cpp/test/Ice/proxy/AllTests.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cpp/test/Ice/proxy/AllTests.cpp b/cpp/test/Ice/proxy/AllTests.cpp index 283238351fe..9a23982ccc0 100644 --- a/cpp/test/Ice/proxy/AllTests.cpp +++ b/cpp/test/Ice/proxy/AllTests.cpp @@ -1155,11 +1155,33 @@ allTests(const Ice::CommunicatorPtr& communicator) test(cl->ice_secure(true)->ice_fixed(connection)->ice_isSecure()); test(cl->ice_facet("facet")->ice_fixed(connection)->ice_getFacet() == "facet"); test(cl->ice_oneway()->ice_fixed(connection)->ice_isOneway()); + Ice::Context ctx; + ctx["one"] = "hello"; + ctx["two"] = "world"; + test(cl->ice_fixed(connection)->ice_getContext().empty()); + test(cl->ice_context(ctx)->ice_fixed(connection)->ice_getContext().size() == 2); + test(cl->ice_fixed(connection)->ice_getInvocationTimeout() == -1); + test(cl->ice_invocationTimeout(10)->ice_fixed(connection)->ice_getInvocationTimeout() == 10); test(cl->ice_fixed(connection)->ice_getConnection() == connection); test(cl->ice_fixed(connection)->ice_fixed(connection)->ice_getConnection() == connection); + test(*cl->ice_compress(true)->ice_fixed(connection)->ice_getCompress()); test(!cl->ice_fixed(connection)->ice_getTimeout()); Ice::ConnectionPtr fixedConnection = cl->ice_connectionId("ice_fixed")->ice_getConnection(); test(cl->ice_fixed(connection)->ice_fixed(fixedConnection)->ice_getConnection() == fixedConnection); + try + { + cl->ice_secure(!connection->getEndpoint()->getInfo()->secure())->ice_fixed(connection)->ice_ping(); + } + catch(const Ice::NoEndpointException&) + { + } + try + { + cl->ice_datagram()->ice_fixed(connection)->ice_ping(); + } + catch(const Ice::NoEndpointException&) + { + } } else { |