Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
Task::TaskTests Class Reference
Inheritance diagram for Task::TaskTests:
Inheritance graph
[legend]

Public Member Functions

virtual void setUp ()
 Test initialization. More...
 
int svc (void)
 Execute thread. More...
 
 TaskTests ()
 Constructor. More...
 
virtual void tearDown ()
 Test finalization. More...
 
void test_activate ()
 
void test_activate2 ()
 activate() More...
 
void test_case0 ()
 
void test_open_close ()
 
void test_resume ()
 
void test_suspend ()
 
void test_wait ()
 
 ~TaskTests ()
 Destructor. More...
 
- Public Member Functions inherited from coil::Task
virtual void activate ()
 Create a thread. More...
 
virtual void activate ()
 Create a thread. More...
 
virtual int close (unsigned long flags=0)
 Task close. More...
 
virtual int close (unsigned long flags=0)
 Task close. More...
 
virtual void finalize ()
 Finalizing the task. More...
 
virtual void finalize ()
 Finalizing the task. More...
 
virtual int open (void *args=0)
 Task open. More...
 
virtual int open (void *args=0)
 Task open. More...
 
virtual void reset ()
 Reset of task count. More...
 
virtual void reset ()
 Reset of task count. More...
 
virtual int resume (void)
 Resuming the suspended task. More...
 
virtual int resume (void)
 Resuming the suspended task. More...
 
virtual int suspend (void)
 Suspending the task. More...
 
virtual int suspend (void)
 Suspending the task. More...
 
 Task ()
 Constructor. More...
 
 Task ()
 Constructor. More...
 
virtual int wait (void)
 Waiting for the thread terminate. More...
 
virtual int wait (void)
 Waiting for the thread terminate. More...
 
virtual ~Task ()
 Destructor. More...
 
virtual ~Task ()
 Destructor. More...
 

Public Attributes

coil::Tasktesttk
 

Private Member Functions

 CPPUNIT_TEST (test_open_close)
 
 CPPUNIT_TEST (test_activate)
 
 CPPUNIT_TEST (test_activate2)
 
 CPPUNIT_TEST (test_wait)
 
 CPPUNIT_TEST (test_suspend)
 
 CPPUNIT_TEST (test_resume)
 
 CPPUNIT_TEST_SUITE (TaskTests)
 
 CPPUNIT_TEST_SUITE_END ()
 

Private Attributes

bool m_statflag
 
short m_tasknumber
 
short m_threadcmd
 
short m_threadcnt [256]
 

Additional Inherited Members

- Static Public Member Functions inherited from coil::Task
static void * svc_run (void *args=0)
 Start thread Execution. More...
 
static unsigned int WINAPI svc_run (void *args=0)
 Start thread Execution. More...
 

Detailed Description

Definition at line 41 of file TaskTests.cpp.

Constructor & Destructor Documentation

Task::TaskTests::TaskTests ( )
inline

Constructor.

Definition at line 65 of file TaskTests.cpp.

Task::TaskTests::~TaskTests ( )
inline

Destructor.

Definition at line 80 of file TaskTests.cpp.

Member Function Documentation

Task::TaskTests::CPPUNIT_TEST ( test_open_close  )
private
Task::TaskTests::CPPUNIT_TEST ( test_activate  )
private
Task::TaskTests::CPPUNIT_TEST ( test_activate2  )
private
Task::TaskTests::CPPUNIT_TEST ( test_wait  )
private
Task::TaskTests::CPPUNIT_TEST ( test_suspend  )
private
Task::TaskTests::CPPUNIT_TEST ( test_resume  )
private
Task::TaskTests::CPPUNIT_TEST_SUITE ( TaskTests  )
private
Task::TaskTests::CPPUNIT_TEST_SUITE_END ( )
private
virtual void Task::TaskTests::setUp ( )
inlinevirtual

Test initialization.

Definition at line 87 of file TaskTests.cpp.

int Task::TaskTests::svc ( void  )
inlinevirtual

Execute thread.

Execute thread

Reimplemented from coil::Task.

Definition at line 102 of file TaskTests.cpp.

virtual void Task::TaskTests::tearDown ( )
inlinevirtual

Test finalization.

Definition at line 94 of file TaskTests.cpp.

void Task::TaskTests::test_activate ( )
inline

Definition at line 160 of file TaskTests.cpp.

void Task::TaskTests::test_activate2 ( )
inline

activate()

This function tests the Task::activate function.

Definition at line 199 of file TaskTests.cpp.

void Task::TaskTests::test_case0 ( )
inline

Definition at line 132 of file TaskTests.cpp.

void Task::TaskTests::test_open_close ( )
inline

Definition at line 141 of file TaskTests.cpp.

void Task::TaskTests::test_resume ( )
inline

Definition at line 263 of file TaskTests.cpp.

void Task::TaskTests::test_suspend ( )
inline

Definition at line 250 of file TaskTests.cpp.

void Task::TaskTests::test_wait ( )
inline

Definition at line 237 of file TaskTests.cpp.

Member Data Documentation

bool Task::TaskTests::m_statflag
private

Definition at line 56 of file TaskTests.cpp.

short Task::TaskTests::m_tasknumber
private

Definition at line 57 of file TaskTests.cpp.

short Task::TaskTests::m_threadcmd
private

Definition at line 58 of file TaskTests.cpp.

short Task::TaskTests::m_threadcnt[256]
private

Definition at line 59 of file TaskTests.cpp.

coil::Task* Task::TaskTests::testtk

Definition at line 61 of file TaskTests.cpp.


The documentation for this class was generated from the following file:


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:08:05