Debian Codegraph @

test_suite/system_tests/subsystems/test_instanced_creation.hxx

raw symbols SCIP
1 /*
2 * Copyright (C) 2018 Edward d'Auvergne
3 *
4 * This file is part of the program FlightGear.
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20
21 #ifndef _FG_INSTANCED_SUBSYSTEM_SYSTEM_TESTS_HXX
22 #define _FG_INSTANCED_SUBSYSTEM_SYSTEM_TESTS_HXX
23
24
25 #include <cppunit/extensions/HelperMacros.h>
26 #include <cppunit/TestFixture.h>
27
28 #include <simgear/structure/subsystem_mgr.hxx>
29
30
31 // The system tests.
32 class InstancedSubsystemTests : public CppUnit::TestFixture
33 {
34 // Set up the test suite.
35 CPPUNIT_TEST_SUITE(InstancedSubsystemTests);
36 //CPPUNIT_TEST(testADF); // Not registered yet.
37 //CPPUNIT_TEST(testAirspeedIndicator); // Not registered yet.
38 //CPPUNIT_TEST(testAltimeter); // Not registered yet.
39 //CPPUNIT_TEST(testAttitudeIndicator); // Not registered yet.
40 //CPPUNIT_TEST(testCommRadio); // Not registered yet.
41 //CPPUNIT_TEST(testClock); // Not registered yet.
42 //CPPUNIT_TEST(testDME); // Not registered yet.
43 //CPPUNIT_TEST(testFGKR_87); // Not registered yet.
44 //CPPUNIT_TEST(testFGMarkerBeacon); // Not registered yet.
45 //CPPUNIT_TEST(testFGNavRadio); // Not registered yet.
46 //CPPUNIT_TEST(testGPS); // Not registered yet.
47 //CPPUNIT_TEST(testGSDI); // Not registered yet.
48 //CPPUNIT_TEST(testHeadingIndicator); // Not registered yet.
49 //CPPUNIT_TEST(testHeadingIndicatorDG); // Not registered yet.
50 //CPPUNIT_TEST(testHeadingIndicatorFG); // Not registered yet.
51 //CPPUNIT_TEST(testHUD); // Segfault.
52 //CPPUNIT_TEST(testInstVerticalSpeedIndicator); // Not registered yet.
53 //CPPUNIT_TEST(testKLN89); // Not registered yet.
54 //CPPUNIT_TEST(testMagCompass); // Not registered yet.
55 //CPPUNIT_TEST(testMasterReferenceGyro); // Not registered yet.
56 //CPPUNIT_TEST(testMK_VIII); // Not registered yet.
57 //CPPUNIT_TEST(testNavRadio); // Segfault.
58 //CPPUNIT_TEST(testRadarAltimeter); // Not registered yet.
59 //CPPUNIT_TEST(testSlipSkidBall); // Not registered yet.
60 //CPPUNIT_TEST(testTACAN); // Not registered yet.
61 //CPPUNIT_TEST(testTCAS); // Not registered yet.
62 //CPPUNIT_TEST(testTransponder); // Not registered yet.
63 //CPPUNIT_TEST(testTurnIndicator); // Not registered yet.
64 //CPPUNIT_TEST(testVerticalSpeedIndicator); // Not registered yet.
65 CPPUNIT_TEST_SUITE_END();
66
67 public:
68 // Set up function for each test.
69 void setUp();
70
71 // Clean up after each test.
72 void tearDown();
73
74 // The subsystem tests.
75 void testADF();
76 void testAirspeedIndicator();
77 void testAltimeter();
78 void testAttitudeIndicator();
79 void testClock();
80 void testCommRadio();
81 void testDME();
82 void testFGKR_87();
83 void testFGMarkerBeacon();
84 void testFGNavRadio();
85 void testGPS();
86 void testGSDI();
87 void testHeadingIndicator();
88 void testHeadingIndicatorDG();
89 void testHeadingIndicatorFG();
90 void testHUD();
91 void testInstVerticalSpeedIndicator();
92 void testKLN89();
93 void testMagCompass();
94 void testMasterReferenceGyro();
95 void testMK_VIII();
96 void testNavRadio();
97 void testRadarAltimeter();
98 void testSlipSkidBall();
99 void testTACAN();
100 void testTCAS();
101 void testTransponder();
102 void testTurnIndicator();
103 void testVerticalSpeedIndicator();
104
105 private:
106 // The subsystem manager.
107 std::unique_ptr<SGSubsystemMgr> _mgr;
108
109 // Helper functions.
110 void create(const char* name);
111 };
112
113 #endif // _FG_INSTANCED_SUBSYSTEM_SYSTEM_TESTS_HXX