Files
comaps/libs/qt_tstfrm/test_main_loop.hpp
Konstantin Pastbin bfffa1fff4 Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2025-08-17 14:32:37 +07:00

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);