summaryrefslogtreecommitdiff
path: root/tests/Reference_Counted_Event_Handler_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Reference_Counted_Event_Handler_Test.cpp')
-rw-r--r--tests/Reference_Counted_Event_Handler_Test.cpp36
1 files changed, 21 insertions, 15 deletions
diff --git a/tests/Reference_Counted_Event_Handler_Test.cpp b/tests/Reference_Counted_Event_Handler_Test.cpp
index 381a9c8176c..2fab565a5d5 100644
--- a/tests/Reference_Counted_Event_Handler_Test.cpp
+++ b/tests/Reference_Counted_Event_Handler_Test.cpp
@@ -238,11 +238,12 @@ reference_counted_event_handler_test_1 (ACE_Reactor *reactor)
if (test_timers)
{
+ ACE_Time_Value const one_second (1);
long timer_id =
reactor->schedule_timer (handler,
one_second_timeout,
- 1,
- 1);
+ one_second,
+ one_second);
ACE_ASSERT (timer_id != -1);
result =
@@ -254,14 +255,15 @@ reference_counted_event_handler_test_1 (ACE_Reactor *reactor)
timer_id =
reactor->schedule_timer (handler,
one_second_timeout,
- 1,
- 1);
+ one_second,
+ one_second);
ACE_ASSERT (timer_id != -1);
+ ACE_Time_Value const two_second (2);
timer_id =
reactor->schedule_timer (handler,
two_second_timeout,
- 2);
+ two_second);
ACE_ASSERT (result != -1);
events += 3;
@@ -279,6 +281,7 @@ reference_counted_event_handler_test_2 (ACE_Reactor *reactor)
{
int events = 0;
int result = 0;
+ ACE_Time_Value const one_second (1);
if (test_find)
{
@@ -358,8 +361,8 @@ reference_counted_event_handler_test_2 (ACE_Reactor *reactor)
long timer_id =
reactor->schedule_timer (handler,
one_second_timeout,
- 1,
- 1);
+ one_second,
+ one_second);
ACE_ASSERT (timer_id != -1);
result =
@@ -379,14 +382,15 @@ reference_counted_event_handler_test_2 (ACE_Reactor *reactor)
long timer_id =
reactor->schedule_timer (handler,
one_second_timeout,
- 1,
- 1);
+ one_second,
+ one_second);
ACE_ASSERT (timer_id != -1);
+ ACE_Time_Value const two_second (2);
timer_id =
reactor->schedule_timer (handler,
two_second_timeout,
- 2);
+ two_second);
ACE_ASSERT (result != -1);
events += 3;
@@ -560,6 +564,7 @@ simple_event_handler (ACE_Reactor *reactor)
{
int events = 0;
int result = 0;
+ ACE_Time_Value const one_second (1);
if (test_find)
{
@@ -641,8 +646,8 @@ simple_event_handler (ACE_Reactor *reactor)
long timer_id =
reactor->schedule_timer (handler,
one_second_timeout,
- 1,
- 1);
+ one_second,
+ one_second);
ACE_ASSERT (timer_id != -1);
result =
@@ -661,14 +666,15 @@ simple_event_handler (ACE_Reactor *reactor)
long timer_id =
reactor->schedule_timer (handler,
one_second_timeout,
- 1,
- 1);
+ one_second,
+ one_second);
ACE_ASSERT (timer_id != -1);
+ ACE_Time_Value const two_second (2);
timer_id =
reactor->schedule_timer (handler,
two_second_timeout,
- 2);
+ two_second);
ACE_ASSERT (result != -1);
events += 3;