1 //============================================================================
7 // Server class to perform testing of TAO's collocation mechanism.
12 //=============================================================================
14 #if !defined (TAO_COLLOCATION_TEST_H)
15 #define TAO_COLLOCATION_TEST_H
17 #include "Diamond_i.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 class Collocation_Test
29 int init (int argc
, ACE_TCHAR
*argv
[]);
30 // Initializing the Collocation_Test object.
32 int parse_args (int argc
, ACE_TCHAR
*argv
[]);
33 // Parse the test specific arguments.
36 // This test narrow an object reference to its base class and see
37 // if it works correctly.
45 PortableServer::POA_var root_poa_
;
47 PortableServer::POAManager_var poa_manager_
;
49 CORBA::Object_var diamond_obj_
;
50 // Our basic test object.
54 Right_i right_servant_
;
55 Buttom_i diamond_servant_
;
56 // A collection of servant for basic narrowing test.
59 #endif /* TAO_COLLOCATION_TEST_H */