2020-04-30 13:28:16 -04:00
|
|
|
#include <functional>
|
2020-04-29 13:30:00 -04:00
|
|
|
#include "GsCachedAreaTest.h"
|
2020-04-30 13:29:04 -04:00
|
|
|
#include "GsTransferInvalidationTest.h"
|
2020-04-29 13:30:00 -04:00
|
|
|
|
2020-04-30 13:28:16 -04:00
|
|
|
typedef std::function<CTest*()> TestFactoryFunction;
|
|
|
|
|
|
|
|
// clang-format off
|
|
|
|
static const TestFactoryFunction s_factories[] =
|
|
|
|
{
|
|
|
|
[]() { return new CGsCachedAreaTest(); },
|
2020-04-30 13:29:04 -04:00
|
|
|
[]() { return new CGsTransferInvalidationTest(); }
|
2020-04-30 13:28:16 -04:00
|
|
|
};
|
|
|
|
// clang-format on
|
|
|
|
|
2020-04-29 13:30:00 -04:00
|
|
|
int main(int argc, const char** argv)
|
|
|
|
{
|
2020-04-30 13:28:16 -04:00
|
|
|
for(const auto& factory : s_factories)
|
|
|
|
{
|
|
|
|
auto test = factory();
|
|
|
|
test->Execute();
|
|
|
|
delete test;
|
|
|
|
}
|
2020-04-29 13:30:00 -04:00
|
|
|
return 0;
|
|
|
|
}
|