Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / tests / Multiple / Collocation_Tester.h
blobd36740def600dbbbffab6e59aeb9aa731de04f99
1 //=============================================================================
2 /**
3 * @file Collocation_Tester.h
5 * This file contains the class that tests the TAO's collocation
6 * mechanism.
8 * @author Angelo Corsaro <corsaro@cs.wustl.edu>
9 */
10 //=============================================================================
13 // -- Custom App. Include --
14 #include "MultipleC.h"
16 #include "ace/Log_Msg.h"
18 struct Quote
20 static const char *top;
21 static const char *left;
22 static const char *right;
23 static const char *bottom;
27 class Collocation_Tester
29 public:
30 // -- Constructor/Destructors --
31 Collocation_Tester (CORBA::Object_ptr object);
33 ~Collocation_Tester ();
35 // -- Command --
36 /// Runs the test.
37 void run ();
40 private:
41 // -- Helper Methods --
43 /// Tests the method accessible thru the
44 /// Top interface.
45 int test_top ();
47 /// Tests the method accessible thru the
48 /// Right interface.
49 int test_right ();
51 /// Tests the method accessible thru the
52 /// Left interface.
53 int test_left ();
55 /// Tests the method accessible thru the
56 /// Bottom interface.
57 int test_bottom ();
59 /**
60 * This method tests wether the answer obtained
61 * is the one expected. As strcmp, it returns zero
62 * if a match occurs and a non-zero value if there
63 * is no match (actually 1 is returned if there is
64 * no match.
66 int match_answer (const char *actual_answer,
67 const char *right_answer,
68 const char *method_name);
70 void shutdown ();
71 private:
72 CORBA::Object_var object_;