| 1 | /* |
| 2 | * SPDX-FileCopyrightText: (C) 2024 James Turner <[email protected]> |
| 3 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 4 | */ |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | |
| 9 | #include <cppunit/TestFixture.h> |
| 10 | #include <cppunit/extensions/HelperMacros.h> |
| 11 | |
| 12 | #include <simgear/structure/subsystem_mgr.hxx> |
| 13 | |
| 14 | class FGNavRadio; |
| 15 | class SGGeod; |
| 16 | |
| 17 | class HeadingIndicatorTests : public CppUnit::TestFixture |
| 18 | { |
| 19 | // Set up the test suite. |
| 20 | CPPUNIT_TEST_SUITE(HeadingIndicatorTests); |
| 21 | |
| 22 | CPPUNIT_TEST(testBasic); |
| 23 | CPPUNIT_TEST(testTumble); |
| 24 | CPPUNIT_TEST(testLatitudeNut); |
| 25 | CPPUNIT_TEST(testVacuumGyro); |
| 26 | |
| 27 | CPPUNIT_TEST_SUITE_END(); |
| 28 | |
| 29 | SGSubsystemRef setupInstrument(const std::string& name, int index); |
| 30 | |
| 31 | public: |
| 32 | // Set up function for each test. |
| 33 | void setUp(); |
| 34 | |
| 35 | // Clean up after each test. |
| 36 | void tearDown(); |
| 37 | |
| 38 | // std::string formatFrequency(double f); |
| 39 | |
| 40 | // The tests. |
| 41 | void testBasic(); |
| 42 | void testTumble(); |
| 43 | void testLatitudeNut(); |
| 44 | void testVacuumGyro(); |
| 45 | }; |