LibCarna Version 3.4.0
Loading...
Searching...
No Matches
GLContextTest.hpp
1/*
2 * Copyright (C) 2021 - 2025 Leonid Kostrykin
3 *
4 */
5
6#pragma once
7
8namespace LibCarna
9{
10
11namespace testing
12{
13
14
15
16// ----------------------------------------------------------------------------------
17// GLContextTest
18// ----------------------------------------------------------------------------------
19
25class GLContextTest : public QObject
26{
27
28 Q_OBJECT
29
30private slots:
31
35 void initTestCase();
36
40 void cleanupTestCase();
41
45 void init();
46
50 void cleanup();
51
52 // ----------------------------------------------------------------------------------
53
54 void test_vendor();
55
56 void test_renderer();
57
58 // ---------------------------------------------------------------------------------
59
60private:
61 std::unique_ptr< QGLContextHolder > qglContextHolder;
62
63}; // GLContextTest
64
65
66
67} // namespace LibCarna :: testing
68
69} // namespace LibCarna
Unit-tests of the LibCarna::base::GLContext class.