1 | /**************************************************************************** |
---|---|
2 | ** |
3 | ** Copyright (C) 2016 The Qt Company Ltd. |
4 | ** Contact: https://www.qt.io/licensing/ |
5 | ** |
6 | ** This file is part of the test suite of the Qt Toolkit. |
7 | ** |
8 | ** $QT_BEGIN_LICENSE:GPL-EXCEPT$ |
9 | ** Commercial License Usage |
10 | ** Licensees holding valid commercial Qt licenses may use this file in |
11 | ** accordance with the commercial license agreement provided with the |
12 | ** Software or, alternatively, in accordance with the terms contained in |
13 | ** a written agreement between you and The Qt Company. For licensing terms |
14 | ** and conditions see https://www.qt.io/terms-conditions. For further |
15 | ** information use the contact form at https://www.qt.io/contact-us. |
16 | ** |
17 | ** GNU General Public License Usage |
18 | ** Alternatively, this file may be used under the terms of the GNU |
19 | ** General Public License version 3 as published by the Free Software |
20 | ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT |
21 | ** included in the packaging of this file. Please review the following |
22 | ** information to ensure the GNU General Public License requirements will |
23 | ** be met: https://www.gnu.org/licenses/gpl-3.0.html. |
24 | ** |
25 | ** $QT_END_LICENSE$ |
26 | ** |
27 | ****************************************************************************/ |
28 | |
29 | #ifndef TST_QGEOROUTEREQUEST_H |
30 | #define TST_QGEOROUTEREQUEST_H |
31 | |
32 | #include <QtCore/QString> |
33 | #include <QtTest/QtTest> |
34 | #include <QMetaType> |
35 | |
36 | #include <qgeocoordinate.h> |
37 | #include <QtPositioning/QGeoRectangle> |
38 | #include <qgeorouterequest.h> |
39 | |
40 | |
41 | QT_USE_NAMESPACE |
42 | |
43 | class tst_QGeoRouteRequest : public QObject |
44 | { |
45 | Q_OBJECT |
46 | |
47 | public: |
48 | tst_QGeoRouteRequest(); |
49 | |
50 | private Q_SLOTS: |
51 | void initTestCase(); |
52 | void cleanupTestCase(); |
53 | void init(); |
54 | void cleanup(); |
55 | |
56 | //Start Unit Test for QGeoRouteRequest |
57 | void constructor_waypoints(); |
58 | void constructor_orig_dest(); |
59 | void copy_constructor(); |
60 | void destructor(); |
61 | void excludeAreas(); |
62 | void numberAlternativeRoutes(); |
63 | void routeOptimization(); |
64 | void routeOptimization_data(); |
65 | void segmentDetail(); |
66 | void segmentDetail_data(); |
67 | void travelModes(); |
68 | void travelModes_data(); |
69 | void waypoints(); |
70 | void waypoints_data(); |
71 | void maneuverDetail(); |
72 | void maneuverDetail_data(); |
73 | void featureWeight(); |
74 | void featureWeight_data(); |
75 | void extraParameters(); |
76 | void extraParameters_data(); |
77 | void departureTime(); |
78 | void departureTime_data(); |
79 | //End Unit Test for QGeoRouteRequest |
80 | |
81 | private: |
82 | QGeoCoordinate *qgeocoordinate; |
83 | QGeoRectangle *qgeoboundingbox; |
84 | QGeoRouteRequest *qgeorouterequest; |
85 | |
86 | }; |
87 | |
88 | Q_DECLARE_METATYPE( QList<double>); |
89 | Q_DECLARE_METATYPE( QGeoRouteRequest::RouteOptimization ); |
90 | Q_DECLARE_METATYPE( QGeoRouteRequest::SegmentDetail ); |
91 | Q_DECLARE_METATYPE( QGeoRouteRequest::TravelMode ); |
92 | Q_DECLARE_METATYPE( QGeoRouteRequest::FeatureType); |
93 | Q_DECLARE_METATYPE( QGeoRouteRequest::FeatureWeight); |
94 | Q_DECLARE_METATYPE( QGeoRouteRequest::ManeuverDetail ); |
95 | |
96 | #endif // TST_QGEOROUTEREQUEST_H |
97 | |
98 |