summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_1254_Regression/BlobServer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Bug_1254_Regression/BlobServer.cpp')
-rw-r--r--TAO/tests/Bug_1254_Regression/BlobServer.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/TAO/tests/Bug_1254_Regression/BlobServer.cpp b/TAO/tests/Bug_1254_Regression/BlobServer.cpp
new file mode 100644
index 00000000000..419ad646a44
--- /dev/null
+++ b/TAO/tests/Bug_1254_Regression/BlobServer.cpp
@@ -0,0 +1,37 @@
+//
+// $Id$
+//
+#include "BlobServer.h"
+
+ACE_RCSID(BlobServerImpl, BlobServerImpl, "$Id$")
+
+BlobServerImpl::BlobServerImpl (CORBA::ORB_ptr orb)
+ : orb_ (CORBA::ORB::_duplicate (orb))
+{
+}
+
+/// Implement the BlobServer interface
+void
+BlobServerImpl::test(
+ BlobType1& blob1,
+ BlobType2& blob2
+ )
+{
+ blob1.length(10);
+ for(int i = 0; i < 10; i++)
+ {
+ blob1[i] = 'A' + i;
+ }
+
+ blob2.length(10);
+ for(int i = 0; i < 10; i++)
+ {
+ blob2[i] = 'A' + i;
+ }
+}
+
+void
+BlobServerImpl::shutdown (void)
+{
+ this->orb_->shutdown (0);
+}