diff options
Diffstat (limited to 'ACE/TAO/tests/Portable_Interceptors/Benchmark/test_i.cpp')
-rw-r--r-- | ACE/TAO/tests/Portable_Interceptors/Benchmark/test_i.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/ACE/TAO/tests/Portable_Interceptors/Benchmark/test_i.cpp b/ACE/TAO/tests/Portable_Interceptors/Benchmark/test_i.cpp new file mode 100644 index 00000000000..c4b676c7d06 --- /dev/null +++ b/ACE/TAO/tests/Portable_Interceptors/Benchmark/test_i.cpp @@ -0,0 +1,40 @@ +// $Id$ + +#include "test_i.h" +#include "marker.h" +#include "ace/OS_NS_string.h" + +ACE_RCSID(Benchmark, test_i, "$Id$") + +Secure_Vault_i::Secure_Vault_i (CORBA::ORB_ptr orb) + : orb_ (CORBA::ORB::_duplicate (orb)) +{ +} +// ctor + +CORBA::Short +Secure_Vault_i::ready (void) +{ + return 1; +} + +void +Secure_Vault_i::authenticate (const char * user) +{ + if (ACE_OS::strcmp (user, "root") != 0) + throw Test_Interceptors::Invalid (); + +} + +CORBA::Long +Secure_Vault_i::update_records (CORBA::Long, + const Test_Interceptors::Secure_Vault::Record &) +{ +return 1; +} + +void +Secure_Vault_i::shutdown (void) +{ + this->orb_->shutdown (0); +} |