summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Notify/Basic/LifeCycleTest.h
blob: 1f07e5ab8f3e7519eef07527a3a5eac77f1e5ba7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* -*- C++ -*- */
// $Id$
// ==========================================================================
//
// = FILENAME
//   LifeCycleTest.h
//
// = DESCRIPTION
//   Test to check it ec and admin objects are destroyed.
//
// = AUTHOR
//   Chanaka Liyanaarachchi <chanaka@ociweb.com>
//
// ==========================================================================

#ifndef NOTIFY_LIFECYCLETST_H
#define NOTIFY_LIFECYCLETST_H

class LifeCycleTest
{
public:
  LifeCycleTest (void);
  ~LifeCycleTest (void);

  void init (int argc, 
             char *argv[] 
             TAO_ENV_ARG_DECL);
  void run_test (TAO_ENV_SINGLE_ARG_DECL);
  int parse_args (int argc, 
                  char *argv[]);

private:
   void create_ec (TAO_ENV_SINGLE_ARG_DECL);
   void create_supplier_admin (TAO_ENV_SINGLE_ARG_DECL);
   void create_consumer_admin (TAO_ENV_SINGLE_ARG_DECL);
   void destroy_ec (TAO_ENV_SINGLE_ARG_DECL);
   void destroy_supplier_admin (TAO_ENV_SINGLE_ARG_DECL);
   void destroy_consumer_admin (TAO_ENV_SINGLE_ARG_DECL);

   CosNotifyChannelAdmin::EventChannelFactory_var notify_factory_;
   CosNotifyChannelAdmin::EventChannel_var ec_;
   CosNotifyChannelAdmin::SupplierAdmin_var supplier_admin_;
   CosNotifyChannelAdmin::ConsumerAdmin_var consumer_admin_;

  int count_;
  // Number of times to create destroy.
};

#endif /* NOTIFY_LIFECYCLETST_H */