ACE+TAO-6_5_17
[ACE_TAO.git] / TAO / tests / Crashed_Callback / Service.h
blob709dfb318db70f766c9355fec6cf9d35dfe84687
2 #ifndef CRASHED_CALLBACK_SERVICE_H
3 #define CRASHED_CALLBACK_SERVICE_H
4 #include /**/ "ace/pre.h"
6 #include "TestS.h"
8 /// Implement the Test::Service interface
9 class Service
10 : public virtual POA_Test::Service
12 public:
13 /// Constructor
14 Service (void);
16 /// Dump the results.
17 /**
18 * In case of failure this exposes any incomplete runs.
20 void dump_results (void);
22 // = The skeleton methods
23 virtual void run_test (Test::Crashed_Callback_ptr callback);
25 CORBA::ORB_var orb_;
27 private:
28 /// Call the are_you_there callback multiple times.
29 /**
30 * @return Number of exceptions raised
32 int call_are_you_there (Test::Crashed_Callback_ptr callback);
34 /// Call the test_oneway method mutiple times.
35 /**
36 * @return Number of exceptions raised
38 int call_test_oneway (Test::Crashed_Callback_ptr callback);
40 private:
41 /// Count the number of tests executed
42 int test_count_;
46 #include /**/ "ace/post.h"
47 #endif /* CRASHED_CALLBACK_SERVICE_H */