summaryrefslogtreecommitdiff
path: root/ACE/TAO/orbsvcs/tests/Notify/Basic/LifeCycle.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/TAO/orbsvcs/tests/Notify/Basic/LifeCycle.h')
-rw-r--r--ACE/TAO/orbsvcs/tests/Notify/Basic/LifeCycle.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/ACE/TAO/orbsvcs/tests/Notify/Basic/LifeCycle.h b/ACE/TAO/orbsvcs/tests/Notify/Basic/LifeCycle.h
new file mode 100644
index 00000000000..87150f7377c
--- /dev/null
+++ b/ACE/TAO/orbsvcs/tests/Notify/Basic/LifeCycle.h
@@ -0,0 +1,48 @@
+/* -*- C++ -*- */
+// $Id$
+// ==========================================================================
+//
+// = FILENAME
+// LifeCycle.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 LifeCycle
+{
+public:
+ LifeCycle (void);
+ ~LifeCycle (void);
+
+ void init (int argc,
+ ACE_TCHAR *argv[]);
+ void run_test (void);
+ int parse_args (int argc,
+ ACE_TCHAR *argv[]);
+
+private:
+ void create_ec (void);
+ void create_supplier_admin (void);
+ void create_consumer_admin (void);
+ void destroy_ec (void);
+ void destroy_supplier_admin (void);
+ void destroy_consumer_admin (void);
+
+ 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 */