| 1 | // SPDX-FileCopyrightText: (C) 2025 James Turner <[email protected]> |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include <cppunit/TestFixture.h> |
| 7 | #include <cppunit/extensions/HelperMacros.h> |
| 8 | |
| 9 | #include <memory> |
| 10 | |
| 11 | #include <simgear/structure/SGSharedPtr.hxx> |
| 12 | |
| 13 | #include <Aircraft/FlightHistory.hxx> |
| 14 | |
| 15 | // The flight plan unit tests. |
| 16 | class HistoryTests : public CppUnit::TestFixture |
| 17 | { |
| 18 | // Set up the test suite. |
| 19 | CPPUNIT_TEST_SUITE(HistoryTests); |
| 20 | CPPUNIT_TEST(testClear); |
| 21 | CPPUNIT_TEST_SUITE_END(); |
| 22 | |
| 23 | SGSharedPtr<FGFlightHistory> history; |
| 24 | |
| 25 | public: |
| 26 | ~HistoryTests(); |
| 27 | |
| 28 | // Set up function for each test. |
| 29 | void setUp(); |
| 30 | |
| 31 | // Clean up after each test. |
| 32 | void tearDown(); |
| 33 | |
| 34 | // The tests. |
| 35 | void testClear(); |
| 36 | }; |