2 //=============================================================================
4 * @file Collocation_Tester.h
6 * Server class to perform testing of TAO's collocation mechanism.
10 //=============================================================================
13 #if !defined (TAO_COLLOCATION_TEST_H)
14 #define TAO_COLLOCATION_TEST_H
16 #include "Diamond_i.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 class Collocation_Test
29 /// Initializing the Collocation_Test object.
30 int init (int argc
, ACE_TCHAR
*argv
[]);
32 /// Parse the test specific arguments.
33 int parse_args (int argc
, ACE_TCHAR
*argv
[]);
35 /// This test narrow an object reference to its base class and see
36 /// if it works correctly.
45 PortableServer::POA_var root_poa_
;
47 PortableServer::POAManager_var poa_manager_
;
49 /// Our basic test object.
50 CORBA::Object_var diamond_obj_
;
52 /// A collection of servant for basic narrowing test.
55 Right_i right_servant_
;
56 Buttom_i diamond_servant_
;
59 #endif /* TAO_COLLOCATION_TEST_H */