diff --git a/cpp/test/Ice/custom/AllTests.cpp b/cpp/test/Ice/custom/AllTests.cpp index e63d11fd49d..4972726a5c4 100644 --- a/cpp/test/Ice/custom/AllTests.cpp +++ b/cpp/test/Ice/custom/AllTests.cpp @@ -148,89 +148,6 @@ allTests(Test::TestHelper* helper) test(ret == in); } - { - Test::BoolSeq in(5); - in[0] = false; - in[1] = true; - in[2] = true; - in[3] = false; - in[4] = true; - Test::BoolSeq out; - Test::BoolSeq ret = t->opBoolRange(in, out); - test(out == in); - test(ret == in); - } - - { - Test::ByteList in; - in.push_back('1'); - in.push_back('2'); - in.push_back('3'); - in.push_back('4'); - in.push_back('5'); - Test::ByteList out; - Test::ByteList ret = t->opByteRange(in, out); - test(out == in); - test(ret == in); - } - - { - Test::VariableList in; - Test::Variable v; - v.s = "THESE"; - in.push_back(v); - v.s = "ARE"; - in.push_back(v); - v.s = "FIVE"; - in.push_back(v); - v.s = "SHORT"; - in.push_back(v); - v.s = "STRINGS."; - in.push_back(v); - Test::VariableList out; - Test::VariableList ret = t->opVariableRange(in, out); - test(out == in); - test(ret == in); - } - - { - Test::ByteList in; - in.push_back('1'); - in.push_back('2'); - in.push_back('3'); - in.push_back('4'); - in.push_back('5'); - Test::ByteList out; - Test::ByteList ret = t->opByteRangeType(in, out); - test(out == in); - test(ret == in); - } - - { - Test::VariableList in; - deque inSeq; - Test::Variable v; - v.s = "THESE"; - in.push_back(v); - inSeq.push_back(v); - v.s = "ARE"; - in.push_back(v); - inSeq.push_back(v); - v.s = "FIVE"; - in.push_back(v); - inSeq.push_back(v); - v.s = "SHORT"; - in.push_back(v); - inSeq.push_back(v); - v.s = "STRINGS."; - in.push_back(v); - inSeq.push_back(v); - Test::VariableList out; - Test::VariableList ret = t->opVariableRangeType(in, out); - test(out == in); - test(ret == in); - } - { deque in(5); in[0] = false; @@ -700,86 +617,6 @@ allTests(Test::TestHelper* helper) test(std::get<0>(r) == in); } - { - Test::BoolSeq in(5); - in[0] = false; - in[1] = true; - in[2] = true; - in[3] = false; - in[4] = true; - auto r = t->opBoolRangeAsync(in).get(); - test(std::get<1>(r) == in); - test(std::get<0>(r) == in); - } - - { - Test::ByteList in; - in.push_back('1'); - in.push_back('2'); - in.push_back('3'); - in.push_back('4'); - in.push_back('5'); - - auto r = t->opByteRangeAsync(in).get(); - test(std::get<1>(r) == in); - test(std::get<0>(r) == in); - } - - { - Test::VariableList in; - Test::Variable v; - v.s = "THESE"; - in.push_back(v); - v.s = "ARE"; - in.push_back(v); - v.s = "FIVE"; - in.push_back(v); - v.s = "SHORT"; - in.push_back(v); - v.s = "STRINGS."; - in.push_back(v); - auto r = t->opVariableRangeAsync(in).get(); - test(std::get<1>(r) == in); - test(std::get<0>(r) == in); - } - - { - Test::ByteList in; - in.push_back('1'); - in.push_back('2'); - in.push_back('3'); - in.push_back('4'); - in.push_back('5'); - auto r = t->opByteRangeTypeAsync(in).get(); - test(std::get<1>(r) == in); - test(std::get<0>(r) == in); - } - - { - Test::VariableList in; - deque inSeq; - Test::Variable v; - v.s = "THESE"; - in.push_back(v); - inSeq.push_back(v); - v.s = "ARE"; - in.push_back(v); - inSeq.push_back(v); - v.s = "FIVE"; - in.push_back(v); - inSeq.push_back(v); - v.s = "SHORT"; - in.push_back(v); - inSeq.push_back(v); - v.s = "STRINGS."; - in.push_back(v); - inSeq.push_back(v); - - auto r = t->opVariableRangeTypeAsync(in).get(); - test(std::get<1>(r) == in); - test(std::get<0>(r) == in); - } - { deque in(5); in[0] = false; @@ -1078,18 +915,6 @@ allTests(Test::TestHelper* helper) test(r.size() == in.size()); test(r == in); } - - { - Test::ByteSeq in; - in.push_back('1'); - in.push_back('2'); - in.push_back('3'); - in.push_back('4'); - - auto r = t->opOutRangeByteSeqAsync(in).get(); - test(r.size() == in.size()); - test(r == in); - } } cout << "ok" << endl; @@ -1219,148 +1044,6 @@ allTests(Test::TestHelper* helper) test(done.get_future().get()); } - { - Test::BoolSeq in(5); - in[0] = false; - in[1] = true; - in[2] = true; - in[3] = false; - in[4] = true; - - promise done; - - t->opBoolRangeAsync(in, - [&](Test::BoolSeq ret, Test::BoolSeq out) - { - test(ret == in); - test(out == in); - done.set_value(true); - }, - [&](std::exception_ptr) - { - done.set_value(false); - }); - - test(done.get_future().get()); - } - - { - Test::ByteList in; - in.push_back('1'); - in.push_back('2'); - in.push_back('3'); - in.push_back('4'); - in.push_back('5'); - - promise done; - - t->opByteRangeAsync(in, - [&](Test::ByteList ret, Test::ByteList out) - { - test(ret == in); - test(out == in); - done.set_value(true); - }, - [&](std::exception_ptr) - { - done.set_value(false); - }); - - test(done.get_future().get()); - } - - { - Test::VariableList in; - Test::Variable v; - v.s = "THESE"; - in.push_back(v); - v.s = "ARE"; - in.push_back(v); - v.s = "FIVE"; - in.push_back(v); - v.s = "SHORT"; - in.push_back(v); - v.s = "STRINGS."; - in.push_back(v); - - promise done; - - t->opVariableRangeAsync(in, - [&](Test::VariableList ret, Test::VariableList out) - { - test(ret == in); - test(out == in); - done.set_value(true); - }, - [&](std::exception_ptr) - { - done.set_value(false); - }); - - test(done.get_future().get()); - } - - { - Test::ByteList in; - in.push_back('1'); - in.push_back('2'); - in.push_back('3'); - in.push_back('4'); - in.push_back('5'); - - promise done; - - t->opByteRangeTypeAsync(in, - [&](Test::ByteList ret, Test::ByteList out) - { - test(ret == in); - test(out == in); - done.set_value(true); - }, - [&](std::exception_ptr) - { - done.set_value(false); - }); - - test(done.get_future().get()); - } - - { - Test::VariableList in; - deque inSeq; - Test::Variable v; - v.s = "THESE"; - in.push_back(v); - inSeq.push_back(v); - v.s = "ARE"; - in.push_back(v); - inSeq.push_back(v); - v.s = "FIVE"; - in.push_back(v); - inSeq.push_back(v); - v.s = "SHORT"; - in.push_back(v); - inSeq.push_back(v); - v.s = "STRINGS."; - in.push_back(v); - inSeq.push_back(v); - promise done; - - t->opVariableRangeTypeAsync(in, - [&](Test::VariableList ret, Test::VariableList out) - { - test(ret == in); - test(out == in); - done.set_value(true); - }, - [&](std::exception_ptr) - { - done.set_value(false); - }); - - test(done.get_future().get()); - } - { deque in(5); in[0] = false; @@ -1884,29 +1567,6 @@ allTests(Test::TestHelper* helper) test(done.get_future().get()); } - { - Test::ByteSeq in; - in.push_back('1'); - in.push_back('2'); - in.push_back('3'); - in.push_back('4'); - - promise done; - - t->opOutRangeByteSeqAsync(in, - [&](Test::ByteSeq out) - { - test(out == in); - done.set_value(true); - }, - [&](std::exception_ptr) - { - done.set_value(false); - }); - - test(done.get_future().get()); - } - cout << "ok" << endl; cout << "testing alternate dictionaries with new AMI... " << flush; diff --git a/cpp/test/Ice/custom/Test.ice b/cpp/test/Ice/custom/Test.ice index 675f7884c78..72a50747990 100644 --- a/cpp/test/Ice/custom/Test.ice +++ b/cpp/test/Ice/custom/Test.ice @@ -130,19 +130,6 @@ interface TestIntf ["cpp:array"] VariableList opVariableArray(["cpp:array"] VariableList inSeq, out ["cpp:array"] VariableList outSeq); - ["cpp:range"] BoolSeq opBoolRange(["cpp:range"] BoolSeq inSeq, out ["cpp:range"] BoolSeq outSeq); - - ["cpp:range"] ByteList opByteRange(["cpp:range"] ByteList inSeq, out ["cpp:range"] ByteList outSeq); - - ["cpp:range"] VariableList opVariableRange(["cpp:range"] VariableList inSeq, out ["cpp:range"] VariableList outSeq); - - ["cpp:range:::Test::ByteList"] ByteList opByteRangeType(["cpp:range:::Test::ByteList"] ByteList inSeq, - out ["cpp:range:::Test::ByteList"] ByteList outSeq); - - ["cpp:range:std::deque< ::Test::Variable>"] VariableList - opVariableRangeType(["cpp:range:std::deque< ::Test::Variable>"] VariableList inSeq, - out ["cpp:range:std::deque< ::Test::Variable>"] VariableList outSeq); - ["cpp:type:std::deque"] BoolSeq opBoolSeq(["cpp:type:std::deque"] BoolSeq inSeq, out ["cpp:type:std::deque"]BoolSeq outSeq); @@ -151,8 +138,6 @@ interface TestIntf BoolDequeList opBoolDequeList(BoolDequeList inSeq, out BoolDequeList outSeq); ["cpp:array"] BoolDequeList opBoolDequeListArray(["cpp:array"] BoolDequeList inSeq, out ["cpp:array"] BoolDequeList outSeq); - ["cpp:range"] BoolDequeList opBoolDequeListRange(["cpp:range"] BoolDequeList inSeq, - out ["cpp:range"] BoolDequeList outSeq); ["cpp:type:std::deque< ::Ice::Byte>"] ByteSeq opByteSeq(["cpp:type:std::deque< ::Ice::Byte>"] ByteSeq inSeq, @@ -206,8 +191,6 @@ interface TestIntf void opOutArrayByteSeq(ByteSeq org, out ["cpp:array"] ByteSeq copy); - void opOutRangeByteSeq(ByteSeq org, out ["cpp:range"] ByteSeq copy); - IntStringDict opIntStringDict(IntStringDict idict, out IntStringDict odict); ["cpp:type:::Test::CustomMap< int64_t, int64_t>"] LongLongDict diff --git a/cpp/test/Ice/custom/TestAMD.ice b/cpp/test/Ice/custom/TestAMD.ice index 2ddcdad7ac7..7643eb14980 100644 --- a/cpp/test/Ice/custom/TestAMD.ice +++ b/cpp/test/Ice/custom/TestAMD.ice @@ -128,17 +128,6 @@ struct BufferStruct VariableList opVariableArray(["cpp:array"] VariableList inSeq, out VariableList outSeq); - BoolSeq opBoolRange(["cpp:range"] BoolSeq inSeq, out BoolSeq outSeq); - - ["cpp:range"] ByteList opByteRange(["cpp:range"] ByteList inSeq, out ["cpp:range"] ByteList outSeq); - - VariableList opVariableRange(["cpp:range"] VariableList inSeq, out VariableList outSeq); - - ByteList opByteRangeType(["cpp:range:::Test::ByteList"] ByteList inSeq, out ByteList outSeq); - - VariableList - opVariableRangeType(["cpp:range:std::deque< ::Test::Variable>"] VariableList inSeq, out VariableList outSeq); - ["cpp:type:std::deque"] BoolSeq opBoolSeq(["cpp:type:std::deque"] BoolSeq inSeq, out ["cpp:type:std::deque"]BoolSeq outSeq); @@ -196,8 +185,6 @@ struct BufferStruct void opOutArrayByteSeq(ByteSeq org, out ["cpp:array"] ByteSeq copy); - void opOutRangeByteSeq(ByteSeq org, out ["cpp:range"] ByteSeq copy); - IntStringDict opIntStringDict(IntStringDict idict, out IntStringDict odict); ["cpp:type:::Test::CustomMap< int64_t, int64_t>"] LongLongDict diff --git a/cpp/test/Ice/custom/TestAMDI.cpp b/cpp/test/Ice/custom/TestAMDI.cpp index dad153a16f8..c2d38d943ee 100644 --- a/cpp/test/Ice/custom/TestAMDI.cpp +++ b/cpp/test/Ice/custom/TestAMDI.cpp @@ -41,47 +41,6 @@ TestIntfI::opVariableArrayAsync(std::pair response, - std::function, const Ice::Current&) -{ - response(in, in); -} - -void -TestIntfI::opByteRangeAsync(Test::ByteList in, - std::function response, - std::function, const Ice::Current&) -{ - response(in, in); -} - -void -TestIntfI::opVariableRangeAsync(Test::VariableList in, - std::function response, - std::function, const Ice::Current&) -{ - response(in, in); -} - -void -TestIntfI::opByteRangeTypeAsync(Test::ByteList in, - std::function response, - std::function, const Ice::Current&) -{ - response(in, in); -} - -void -TestIntfI::opVariableRangeTypeAsync(Test::VariableList in, - std::function response, - std::function, const Ice::Current&) -{ - response(in, in); -} - void TestIntfI::opBoolSeqAsync(std::deque in, std::function&, const std::deque&)> response, @@ -248,14 +207,6 @@ TestIntfI::opOutArrayByteSeqAsync(Test::ByteSeq in, response(std::make_pair(in.data(), in.data() + in.size())); } -void -TestIntfI::opOutRangeByteSeqAsync(Test::ByteSeq in, - std::function response, - std::function, const Ice::Current&) -{ - response(in); -} - void TestIntfI::opIntStringDictAsync(Test::IntStringDict in, std::function response, diff --git a/cpp/test/Ice/custom/TestAMDI.h b/cpp/test/Ice/custom/TestAMDI.h index 707b5432288..4705011d4b5 100644 --- a/cpp/test/Ice/custom/TestAMDI.h +++ b/cpp/test/Ice/custom/TestAMDI.h @@ -27,27 +27,6 @@ class TestIntfI : public virtual Test::TestIntf std::function, std::function, const Ice::Current&) override; - void opBoolRangeAsync(Test::BoolSeq, - std::function, - std::function, const Ice::Current&) override; - - void opByteRangeAsync(Test::ByteList, - std::function, - std::function, const Ice::Current&) override; - - void opVariableRangeAsync(Test::VariableList, - std::function, - std::function, const Ice::Current&) override; - - void opByteRangeTypeAsync(Test::ByteList, - std::function, - std::function, const Ice::Current&) override; - - void opVariableRangeTypeAsync(Test::VariableList, - std::function, - std::function, const Ice::Current&) override; - void opBoolSeqAsync(std::deque, std::function&, const std::deque&)>, std::function, const Ice::Current&) override; @@ -134,10 +113,6 @@ class TestIntfI : public virtual Test::TestIntf std::function&)>, std::function, const Ice::Current&) override; - void opOutRangeByteSeqAsync(::Test::ByteSeq, - std::function, - std::function, const Ice::Current&) override; - void opIntStringDictAsync(::Test::IntStringDict, std::function, std::function, const Ice::Current&) override; diff --git a/cpp/test/Ice/custom/TestI.cpp b/cpp/test/Ice/custom/TestI.cpp index 7cad5eae18d..5844a01d03d 100644 --- a/cpp/test/Ice/custom/TestI.cpp +++ b/cpp/test/Ice/custom/TestI.cpp @@ -41,13 +41,6 @@ TestIntfI::opVariableArray(std::pair