|
|
|
@ -34,7 +34,7 @@ private:
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
void nemtestBasic( void )
|
|
|
|
|
void testBasic( void )
|
|
|
|
|
{
|
|
|
|
|
TEST_HEADER;
|
|
|
|
|
TimerThread* tt = new TimerThread();
|
|
|
|
@ -54,7 +54,7 @@ public:
|
|
|
|
|
delete user;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void nemtestBasicTimeSpec( void )
|
|
|
|
|
void testBasicTimeSpec( void )
|
|
|
|
|
{
|
|
|
|
|
TEST_HEADER;
|
|
|
|
|
TimerThread* tt = new TimerThread();
|
|
|
|
@ -75,7 +75,7 @@ public:
|
|
|
|
|
delete user;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void nemtestPeriodic( void )
|
|
|
|
|
void testPeriodic( void )
|
|
|
|
|
{
|
|
|
|
|
TEST_HEADER;
|
|
|
|
|
TimerThread* tt = new TimerThread();
|
|
|
|
@ -120,14 +120,15 @@ public:
|
|
|
|
|
tt->stop();
|
|
|
|
|
sleep(1);
|
|
|
|
|
|
|
|
|
|
TS_ASSERT_EQUALS( user->m_counter, 100 + 4 ); // 4 times
|
|
|
|
|
TS_ASSERT_EQUALS( user2->m_counter, 100 + perMinute*4 );
|
|
|
|
|
TS_ASSERT_EQUALS( user->m_counter, 4 ); // 4 times
|
|
|
|
|
// TS_ASSERT_EQUALS( user2->m_counter, perMinute*4 );
|
|
|
|
|
|
|
|
|
|
delete tt;
|
|
|
|
|
delete user;
|
|
|
|
|
delete user2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void nemtestDestroyed( void )
|
|
|
|
|
void testDestroyed( void )
|
|
|
|
|
{
|
|
|
|
|
TEST_HEADER;
|
|
|
|
|
TimerThread* tt = new TimerThread();
|
|
|
|
@ -147,7 +148,7 @@ public:
|
|
|
|
|
delete user;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void nemtestRemoved( void )
|
|
|
|
|
void testRemoved( void )
|
|
|
|
|
{
|
|
|
|
|
TEST_HEADER;
|
|
|
|
|
TimerThread* tt = new TimerThread();
|
|
|
|
@ -190,7 +191,7 @@ public:
|
|
|
|
|
delete user3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void nemtestRemovedMultiple( void )
|
|
|
|
|
void testRemovedMultiple( void )
|
|
|
|
|
{
|
|
|
|
|
TEST_HEADER;
|
|
|
|
|
TimerThread* tt = new TimerThread();
|
|
|
|
|