mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 21:57:57 +03:00
24 lines
494 B
C++
24 lines
494 B
C++
#include <functional>
|
|
#include "GsCachedAreaTest.h"
|
|
#include "GsTransferInvalidationTest.h"
|
|
|
|
typedef std::function<CTest*()> TestFactoryFunction;
|
|
|
|
// clang-format off
|
|
static const TestFactoryFunction s_factories[] =
|
|
{
|
|
[]() { return new CGsCachedAreaTest(); },
|
|
[]() { return new CGsTransferInvalidationTest(); }
|
|
};
|
|
// clang-format on
|
|
|
|
int main(int argc, const char** argv)
|
|
{
|
|
for(const auto& factory : s_factories)
|
|
{
|
|
auto test = factory();
|
|
test->Execute();
|
|
delete test;
|
|
}
|
|
return 0;
|
|
}
|