summaryrefslogtreecommitdiff
path: root/TAO/tests/Multiple/Collocation_Tester.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Multiple/Collocation_Tester.h')
-rw-r--r--TAO/tests/Multiple/Collocation_Tester.h80
1 files changed, 80 insertions, 0 deletions
diff --git a/TAO/tests/Multiple/Collocation_Tester.h b/TAO/tests/Multiple/Collocation_Tester.h
new file mode 100644
index 00000000000..e220b07b466
--- /dev/null
+++ b/TAO/tests/Multiple/Collocation_Tester.h
@@ -0,0 +1,80 @@
+//$Id$
+//
+// ============================================================================
+//
+// = LIBRARY
+// TAO/tests/Multiple
+//
+// = FILENAME
+// Collocation_Tester.h
+//
+// = DESCRIPTION
+// This file contains the class that tests the TAO's collocation
+// mechanism.
+//
+// = AUTHOR
+// Angelo Corsaro <corsaro@cs.wustl.edu>
+//
+// ============================================================================
+
+// -- Custom App. Include --
+#include "MultipleC.h"
+
+#include "ace/Log_Msg.h"
+
+struct Quote
+{
+ static const char *top;
+ static const char *left;
+ static const char *right;
+ static const char *bottom;
+};
+
+
+class Collocation_Tester
+{
+public:
+
+ // -- Constructor/Destructors --
+ Collocation_Tester (CORBA::Object_ptr object);
+
+ ~Collocation_Tester ();
+
+ // -- Command --
+ void run (void);
+ // Runs the test.
+
+
+private:
+
+ // -- Helper Methods --
+
+ int test_top (void);
+ // Tests the method accessible thru the
+ // Top interface.
+
+ int test_right (void);
+ // Tests the method accessible thru the
+ // Right interface.
+
+ int test_left (void);
+ // Tests the method accessible thru the
+ // Left interface.
+
+ int test_bottom (void);
+ // Tests the method accessible thru the
+ // Bottom interface.
+
+ int match_answer (const char *actual_answer,
+ const char *right_answer,
+ const char *method_name);
+ // This method tests wether the answer obtained
+ // is the one expected. As strcmp, it returns zero
+ // if a match occurs and a non-zero value if there
+ // is no match (actually 1 is returned if there is
+ // no match.
+
+ void shutdown (void);
+private:
+ CORBA::Object_var object_;
+};