Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / tests / Collocation / Collocation_Tester.h
blob03fcf224538ade00175e3c64ec0e9c41df9fc549
2 //=============================================================================
3 /**
4 * @file Collocation_Tester.h
6 * Server class to perform testing of TAO's collocation mechanism.
8 * @author Nanbor Wang
9 */
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)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 class Collocation_Test
24 public:
25 Collocation_Test ();
27 void shutdown ();
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.
37 int test_narrow ();
39 /// Run the test.
40 int run ();
42 private:
43 CORBA::ORB_var orb_;
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.
53 Top_i top_servant_;
54 Left_i left_servant_;
55 Right_i right_servant_;
56 Buttom_i diamond_servant_;
59 #endif /* TAO_COLLOCATION_TEST_H */