Debian Codegraph @

test_suite/unit_tests/Navaids/test_routeManager.hxx

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 /*
2 * Copyright (C) 2019 James Turner
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_ROUTE_MANAGER_UNIT_TESTS_HXX
22 #define _FG_ROUTE_MANAGER_UNIT_TESTS_HXX
23
24
25 #include <cppunit/extensions/HelperMacros.h>
26 #include <cppunit/TestFixture.h>
27
28 class SGGeod;
29 class GPS;
30
31 // The flight plan unit tests.
32 class RouteManagerTests : public CppUnit::TestFixture
33 {
34 // Set up the test suite.
35 CPPUNIT_TEST_SUITE(RouteManagerTests);
•36 // CPPUNIT_TEST(testBasic);
37 // CPPUNIT_TEST(testDefaultSID);
38 // CPPUNIT_TEST(testDefaultApproach);
39 // CPPUNIT_TEST(testDirectToLegOnFlightplanAndResume);
40 // CPPUNIT_TEST(testHoldFromNasal);
41 // CPPUNIT_TEST(testSequenceDiscontinuityAndResume);
42 // CPPUNIT_TEST(testHiddenWaypoints);
43 // CPPUNIT_TEST(loadGPX);
44 // CPPUNIT_TEST(loadFGFP);
45 // CPPUNIT_TEST(testRouteWithProcedures);
46 // CPPUNIT_TEST(testRouteWithApproachProcedures);
47 // CPPUNIT_TEST(testsSelectNavaid);
48 CPPUNIT_TEST(testCommandAPI);
49 CPPUNIT_TEST(testRMBug2616);
50 CPPUNIT_TEST(testsSelectWaypoint);
51 CPPUNIT_TEST(testsSelectWaypoint2);
52 CPPUNIT_TEST(testAppendWaypoint);
53
54 CPPUNIT_TEST_SUITE_END();
55
56 // void setPositionAndStabilise(FGNavRadio* r, const SGGeod& g);
57
58 public:
59 // Set up function for each test.
60 void setUp();
61
62 // Clean up after each test.
63 void tearDown();
64
65 void setPositionAndStabilise(const SGGeod& g);
66
67 // The tests.
68 void testBasic();
69 void testDefaultSID();
70 void testDefaultApproach();
71 void testDirectToLegOnFlightplanAndResume();
72 void testHoldFromNasal();
73 void testSequenceDiscontinuityAndResume();
74 void testHiddenWaypoints();
75 void loadGPX();
76 void loadFGFP();
77 void testRouteWithProcedures();
78 void testRouteWithApproachProcedures();
79 void testsSelectNavaid();
80 void testCommandAPI();
81 void testsSelectWaypoint();
82 void testRMBug2616();
83 void testsSelectWaypoint2();
84 void testAppendWaypoint();
85 private:
86 GPS* m_gps = nullptr;
87 };
88
89 #endif // _FG_ROUTE_MANAGER_UNIT_TESTS_HXX