mirror of
https://github.com/pantor/inja.git
synced 2026-02-17 09:03:58 +00:00
27 lines
483 B
C++
Executable File
27 lines
483 B
C++
Executable File
#ifndef __HAYAI_TESTFACTORY
|
|
#define __HAYAI_TESTFACTORY
|
|
#include "hayai_test.hpp"
|
|
|
|
namespace hayai
|
|
{
|
|
/// Base class for test factory implementations.
|
|
class TestFactory
|
|
{
|
|
public:
|
|
/// Virtual destructor
|
|
|
|
/// Has no function in the base class.
|
|
virtual ~TestFactory()
|
|
{
|
|
|
|
}
|
|
|
|
|
|
/// Creates a test instance to run.
|
|
|
|
/// @returns a pointer to an initialized test.
|
|
virtual Test* CreateTest() = 0;
|
|
};
|
|
}
|
|
#endif
|