summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/operations/Twoways.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/operations/Twoways.cpp')
-rw-r--r--cpp/test/Ice/operations/Twoways.cpp47
1 files changed, 0 insertions, 47 deletions
diff --git a/cpp/test/Ice/operations/Twoways.cpp b/cpp/test/Ice/operations/Twoways.cpp
index b629b82c7a9..6c79d5a3706 100644
--- a/cpp/test/Ice/operations/Twoways.cpp
+++ b/cpp/test/Ice/operations/Twoways.cpp
@@ -696,52 +696,6 @@ twoways(const Ice::CommunicatorPtr& communicator, const Test::MyClassPrx& p)
{
//
- // Test that default context is obtained correctly from communicator.
- //
-/* DEPRECATED
- Ice::Context dflt;
- dflt["a"] = "b";
- communicator->setDefaultContext(dflt);
- test(p->opContext() != dflt);
-
- Test::MyClassPrx p2 = Test::MyClassPrx::uncheckedCast(p->ice_context(Ice::Context()));
- test(p2->opContext().empty());
-
- p2 = Test::MyClassPrx::uncheckedCast(p->ice_defaultContext());
- test(p2->opContext() == dflt);
-
- communicator->setDefaultContext(Ice::Context());
- test(!p2->opContext().empty());
-
- communicator->setDefaultContext(dflt);
- Test::MyClassPrx c = Test::MyClassPrx::checkedCast(
- communicator->stringToProxy("test:default -p 12010"));
- test(c->opContext() == dflt);
-
- dflt["a"] = "c";
- Test::MyClassPrx c2 = Test::MyClassPrx::uncheckedCast(c->ice_context(dflt));
- test(c2->opContext()["a"] == "c");
-
- dflt.clear();
- Test::MyClassPrx c3 = Test::MyClassPrx::uncheckedCast(c2->ice_context(dflt));
- Ice::Context tmp = c3->opContext();
- test(tmp.find("a") == tmp.end());
-
- Test::MyClassPrx c4 = Test::MyClassPrx::uncheckedCast(c2->ice_defaultContext());
- test(c4->opContext()["a"] == "b");
-
- dflt["a"] = "d";
- communicator->setDefaultContext(dflt);
-
- Test::MyClassPrx c5 = Test::MyClassPrx::uncheckedCast(c->ice_defaultContext());
- test(c5->opContext()["a"] == "d");
-
- communicator->setDefaultContext(Ice::Context());
-*/
- }
-
- {
- //
// Test implicit context propagation
//
@@ -804,7 +758,6 @@ twoways(const Ice::CommunicatorPtr& communicator, const Test::MyClassPrx& p)
ic->destroy();
}
}
-
}
{