diff options
author | Michi Henning <michi@zeroc.com> | 2003-08-27 05:05:57 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2003-08-27 05:05:57 +0000 |
commit | 1000e26d3c7578d04b95ad8a42b61d009bb001cb (patch) | |
tree | 064f0d690eaff464b220625b373cba6af4213396 /cpp/test/Ice/operations/Twoways.cpp | |
parent | file XMLParser.h was initially added on branch binary_freeze. (diff) | |
download | ice-1000e26d3c7578d04b95ad8a42b61d009bb001cb.tar.bz2 ice-1000e26d3c7578d04b95ad8a42b61d009bb001cb.tar.xz ice-1000e26d3c7578d04b95ad8a42b61d009bb001cb.zip |
Added per-proxy contexts.
Diffstat (limited to 'cpp/test/Ice/operations/Twoways.cpp')
-rw-r--r-- | cpp/test/Ice/operations/Twoways.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cpp/test/Ice/operations/Twoways.cpp b/cpp/test/Ice/operations/Twoways.cpp index 3fc8b6cc167..950bb3da412 100644 --- a/cpp/test/Ice/operations/Twoways.cpp +++ b/cpp/test/Ice/operations/Twoways.cpp @@ -591,4 +591,26 @@ twoways(const Test::MyClassPrx& p) } } } + + { + Ice::Context ctx; + ctx["one"] = "ONE"; + ctx["two"] = "TWO"; + ctx["three"] = "THREE"; + { + Test::StringStringD r = p->opContext(); + test(r != ctx); + } + { + Test::StringStringD r = p->opContext(ctx); + test(r == ctx); + } + { + Test::MyClassPrx p2 = Test::MyClassPrx::checkedCast(p->ice_newContext(ctx)); + Test::StringStringD r = p2->opContext(); + test(r == ctx); + r = p2->opContext(ctx); + test(r == ctx); + } + } } |