Files
inja/test/hayai/hayai_default_test_factory.hpp
pantor 699c207c8c Inja v2 (#67)
* inja2

* header only

* reduce dependencies

* code cleaning

* c++17

* use stdc++

* code cleaning

* infrastructure

* header only

* add infrastructure

* fix tests

* use minimum clang 6

* code cleaning, polyfill for c++11

* fix some file tests

* fix readme

* update appveyor

* fix polyfill and ci

* fix polyfill

* fix ci?

* test msvc __cplusplus

* add doxygen

* activate all tests

* code cleaning

* add coveralls, set default to dot notation

* add html test

* add doxygen comments

* test single_include file

* change build folder in appveyor

* correct make arguments in appveyor

* fix appveyor arguments
2018-12-23 16:13:15 +01:00

28 lines
637 B
C++
Executable File

#ifndef __HAYAI_DEFAULTTESTFACTORY
#define __HAYAI_DEFAULTTESTFACTORY
#include "hayai_test_factory.hpp"
namespace hayai
{
/// Default test factory implementation.
/// Simply constructs an instance of a the test of class @ref T with no
/// constructor parameters.
///
/// @tparam T Test class.
template<class T>
class TestFactoryDefault
: public TestFactory
{
public:
/// Create a test instance with no constructor parameters.
/// @returns a pointer to an initialized test.
virtual Test* CreateTest()
{
return new T();
}
};
}
#endif