Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Multiple / Collocation_Tester.h
blob891f02233f70cb09a3b3aabc0e7ea573a86aee7a
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:
31 // -- Constructor/Destructors --
32 Collocation_Tester (CORBA::Object_ptr object);
34 ~Collocation_Tester ();
36 // -- Command --
37 /// Runs the test.
38 void run (void);
41 private:
43 // -- Helper Methods --
45 /// Tests the method accessible thru the
46 /// Top interface.
47 int test_top (void);
49 /// Tests the method accessible thru the
50 /// Right interface.
51 int test_right (void);
53 /// Tests the method accessible thru the
54 /// Left interface.
55 int test_left (void);
57 /// Tests the method accessible thru the
58 /// Bottom interface.
59 int test_bottom (void);
61 /**
62 * This method tests wether the answer obtained
63 * is the one expected. As strcmp, it returns zero
64 * if a match occurs and a non-zero value if there
65 * is no match (actually 1 is returned if there is
66 * no match.
68 int match_answer (const char *actual_answer,
69 const char *right_answer,
70 const char *method_name);
72 void shutdown (void);
73 private:
74 CORBA::Object_var object_;