summaryrefslogtreecommitdiff
path: root/test/testMainWindow.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-12-29 23:25:25 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-12-29 23:25:25 +0000
commit94e99a5a9ded01e8184543b7ddf5cdfa39573ded (patch)
treeca6dd314da3c3d29fd8fc8d36f53d578c8c48be6 /test/testMainWindow.h
parentAdd missing explicit on constructors (diff)
downloadilt-94e99a5a9ded01e8184543b7ddf5cdfa39573ded.tar.bz2
ilt-94e99a5a9ded01e8184543b7ddf5cdfa39573ded.tar.xz
ilt-94e99a5a9ded01e8184543b7ddf5cdfa39573ded.zip
Move test render helpers into a new test library
Diffstat (limited to 'test/testMainWindow.h')
-rw-r--r--test/testMainWindow.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/testMainWindow.h b/test/testMainWindow.h
new file mode 100644
index 0000000..bc9c0bd
--- /dev/null
+++ b/test/testMainWindow.h
@@ -0,0 +1,14 @@
+#pragma once
+
+#include "ui/window.h"
+
+class TestMainWindow : public Window {
+ // This exists only to hold an OpenGL context open for the duration of the tests,
+ // in the same way a real main window would always exist.
+public:
+ TestMainWindow();
+ void
+ tick(TickDuration) override
+ {
+ }
+};