UnitTestComponentInterface Class Reference

#include <unitTestComponentInterface.h>

Inheritance diagram for UnitTestComponentInterface:

Inheritance graph
[legend]
List of all members.

Detailed Description

This is a class that will make it very easy for a component author to provide unit testing functionality from within an instantiated component.


Public Member Functions

 UnitTestComponentInterface (const char *name)
virtual ~UnitTestComponentInterface ()
virtual bool isValid () const
 This will return true if the interface is valid.
virtual void run ()=0
 This is the only function you need to overwrite to add a unit test interface your component.

Private Types

typedef ComponentInterface Parent

Private Attributes

StringTableEntry mName
UnitTesting::DynamicTestRegistrationmTestReg


Member Typedef Documentation


Constructor & Destructor Documentation

UnitTestComponentInterface::UnitTestComponentInterface ( const char *  name  )  [inline]

virtual UnitTestComponentInterface::~UnitTestComponentInterface (  )  [inline, virtual]


Member Function Documentation

virtual bool UnitTestComponentInterface::isValid (  )  const [inline, virtual]

This will return true if the interface is valid.

Reimplemented from ComponentInterface.

virtual void UnitTestComponentInterface::run (  )  [pure virtual]

This is the only function you need to overwrite to add a unit test interface your component.

Implements UnitTesting::UnitTest.


Member Data Documentation