diff options
Diffstat (limited to 'TAO/tests/Portable_Interceptors/Bug_1559/test_i.cpp')
-rw-r--r-- | TAO/tests/Portable_Interceptors/Bug_1559/test_i.cpp | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/TAO/tests/Portable_Interceptors/Bug_1559/test_i.cpp b/TAO/tests/Portable_Interceptors/Bug_1559/test_i.cpp new file mode 100644 index 00000000000..0d201962ba4 --- /dev/null +++ b/TAO/tests/Portable_Interceptors/Bug_1559/test_i.cpp @@ -0,0 +1,45 @@ +// $Id$ + +#include "test_i.h" + +ACE_RCSID (Service_Context_Manipulation, + test_i, + "$Id$") + + +Visual_i::Visual_i (CORBA::ORB_ptr orb) + : orb_ (CORBA::ORB::_duplicate (orb)) +{ +} + +void +Visual_i::normal (CORBA::Long arg) +{ + ACE_DEBUG ((LM_DEBUG, "Visual::normal called with %d\n", arg)); +} + +void +Visual_i::nothing (void) +{ + ACE_DEBUG ((LM_DEBUG, "Visual::nothing\n")); +} + +void +Visual_i::user (void) +{ + ACE_DEBUG ((LM_DEBUG, "Visual::user, throwing Silly\n")); + throw Test_Interceptors::Silly (); +} + +void +Visual_i::system (void) +{ + ACE_DEBUG ((LM_DEBUG, "Visual::user, throwing INV_OBJREF\n")); + throw CORBA::INV_OBJREF (); +} + +void +Visual_i::shutdown (void) +{ + this->orb_->shutdown (0); +} |