mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
15 lines
414 B
C++
15 lines
414 B
C++
#pragma once
|
|
|
|
#include <functional>
|
|
|
|
class QPaintDevice;
|
|
namespace testing
|
|
{
|
|
using RenderFunction = std::function<void(QPaintDevice *)>;
|
|
using TestFunction = std::function<void()>;
|
|
} // namespace testing
|
|
|
|
extern void RunTestLoop(char const * testName, testing::RenderFunction && fn, bool autoExit = true);
|
|
|
|
extern void RunTestInOpenGLOffscreenEnvironment(char const * testName, testing::TestFunction const & fn);
|