summaryrefslogtreecommitdiff
path: root/TAO/tests/Exposed_Policies/Policy_Tester.h
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:21 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:21 +0000
commit3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (patch)
tree197c810e5f5bce17b1233a7cb8d7b50c0bcd25e2 /TAO/tests/Exposed_Policies/Policy_Tester.h
parent6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (diff)
downloadATCD-3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c.tar.gz
Repo restructuring
Diffstat (limited to 'TAO/tests/Exposed_Policies/Policy_Tester.h')
-rw-r--r--TAO/tests/Exposed_Policies/Policy_Tester.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/TAO/tests/Exposed_Policies/Policy_Tester.h b/TAO/tests/Exposed_Policies/Policy_Tester.h
new file mode 100644
index 00000000000..970ed503b7f
--- /dev/null
+++ b/TAO/tests/Exposed_Policies/Policy_Tester.h
@@ -0,0 +1,66 @@
+// $Id$
+//
+// ============================================================================
+//
+// = LIBRARY
+// TAO/tests/Exposed_Policies
+//
+// = FILENAME
+// Policy_Verifier.h
+//
+// = DESCRIPTION
+// This class verifies that the policy are correctly embedded
+// in the IOR.
+//
+// = AUTHOR
+// Angelo Corsaro <corsaro@cs.wustl.edu>
+//
+// ============================================================================
+
+#ifndef POLICY_TESTER_H_
+#define POLICY_TESTER_H_
+
+// -- App. Specific Include --
+#include "RT_Properties.h"
+
+// -- TAO Include --
+#include "tao/ORB.h"
+#include "tao/PortableServer/PortableServer.h"
+#include "tao/RTPortableServer/RTPortableServer.h"
+
+class Policy_Tester
+{
+public:
+ // Ctor/Dtor.
+ Policy_Tester (void);
+ ~Policy_Tester (void);
+
+ void run (ACE_ENV_SINGLE_ARG_DECL);
+ // Runs the test.
+
+ int init (int argc,
+ char *argv[]
+ ACE_ENV_ARG_DECL);
+
+ void shutdown (ACE_ENV_SINGLE_ARG_DECL);
+private:
+ // Helper method used internally.
+ int create_objects (ACE_ENV_SINGLE_ARG_DECL);
+
+ CORBA::Boolean check_reference (CORBA::Object_ptr object,
+ const char *msg);
+
+private:
+
+ int is_initialized_;
+
+ RTCORBA::RTORB_var rt_orb_;
+ CORBA::ORB_var orb_;
+ PortableServer::POA_var poa_;
+ RTPortableServer::POA_var child_poa_;
+ RT_Properties *rt_object_properties_;
+ RT_Properties *rt_poa_properties_;
+};
+
+
+#endif /* POLICY_TESTER_H_ */