Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / Crashed_Callback / Service.h
blob9d3e4f4ffa3bb53c31c2c8181bec2f57dd17eb3e
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 ();
16 /// Dump the results.
17 /**
18 * In case of failure this exposes any incomplete runs.
20 void dump_results ();
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_;
45 #include /**/ "ace/post.h"
46 #endif /* CRASHED_CALLBACK_SERVICE_H */