summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-05-21 21:09:01 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-05-21 21:09:01 +0000
commit31f5a95b4afed079378fe81d608a7fd6115c981e (patch)
treef0afd05003131c9b33bcbc076a415d621aa0357f
parent697654a0965009790e9484d7caf93739e9ecb733 (diff)
downloadATCD-31f5a95b4afed079378fe81d608a7fd6115c981e.tar.gz
Added implementation of new complex Any test.
-rw-r--r--TAO/tests/Param_Test/param_test_i.cpp12
-rw-r--r--TAO/tests/Param_Test/param_test_i.h6
2 files changed, 18 insertions, 0 deletions
diff --git a/TAO/tests/Param_Test/param_test_i.cpp b/TAO/tests/Param_Test/param_test_i.cpp
index a5d39e66fdb..c5cbbd3ec4a 100644
--- a/TAO/tests/Param_Test/param_test_i.cpp
+++ b/TAO/tests/Param_Test/param_test_i.cpp
@@ -777,6 +777,18 @@ Param_Test_i::test_big_union (const Param_Test::Big_Union& u1,
return ret._retn ();
}
+CORBA::Any*
+Param_Test_i::test_complex_any (const CORBA::Any &a1,
+ CORBA::Any &a2,
+ CORBA::Any_out a3,
+ CORBA::Environment &ACE_TRY_ENV)
+{
+ CORBA::Any_var ret (new CORBA::Any (a1));
+ a2 = a1;
+ a3 = new CORBA::Any (a1);
+ return ret._retn ();
+}
+
#if 0
Param_Test::Multdim_Array_slice *
Param_Test_i::test_multdim_array (const Param_Test::Multdim_Array a1,
diff --git a/TAO/tests/Param_Test/param_test_i.h b/TAO/tests/Param_Test/param_test_i.h
index ab8c89250f7..8c7b1c80371 100644
--- a/TAO/tests/Param_Test/param_test_i.h
+++ b/TAO/tests/Param_Test/param_test_i.h
@@ -234,6 +234,12 @@ public:
Param_Test::Big_Union_out u3,
CORBA::Environment &env);
+ virtual CORBA::Any*
+ test_complex_any (const CORBA::Any &a1,
+ CORBA::Any &a2,
+ CORBA::Any_out a3,
+ CORBA::Environment &env);
+
# if 0
// Test for multi dimensional arrays
virtual Param_Test::Multdim_Array_slice *