Files
inja/third_party/include/hayai/hayai_test_factory.hpp
2020-06-25 22:57:37 +02:00

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