4 #include "ace/OS_NS_unistd.h"
6 /* static */ bool Test_i::expected_requests_made_
= false;
8 Test_i::Test_i (CORBA::ORB_ptr orb
, CORBA::Short num_requests_expected
)
9 : orb_ (CORBA::ORB::_duplicate(orb
))
10 , num_requests_expected_ (num_requests_expected
)
11 , num_requests_made_ (0)
17 if (this->num_requests_expected_
== this->num_requests_made_
)
18 Test_i::expected_requests_made_
= true;
22 Test_i::get_num_requests (CORBA::Short delay_secs
)
24 ACE_OS::sleep (delay_secs
);
25 return ++this->num_requests_made_
;
29 Test_i::expected_requests_made ()
31 return Test_i::expected_requests_made_
;