blob: bd4f6428362a0de5e9ef68fb8aff7d02c4228e54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#ifndef TST_QGEOROUTE_H
#define TST_QGEOROUTE_H
#include <QtCore/QString>
#include <QtTest/QtTest>
#include <QMetaType>
#include <qgeoroute.h>
#include <QtPositioning/QGeoRectangle>
#include <qgeocoordinate.h>
#include <qgeorouterequest.h>
#include <qgeoroutesegment.h>
QT_USE_NAMESPACE
class tst_QGeoRoute : public QObject
{
Q_OBJECT
public:
tst_QGeoRoute();
private Q_SLOTS:
//Start unit test for QGeoRoute
void constructor();
void copy_constructor();
void bounds();
void distance();
void path();
void path_data();
void request();
void routeId();
void firstrouteSegments();
void travelMode();
void travelMode_data();
void travelTime();
void operators();
//End Unit Test for QGeoRoute
};
Q_DECLARE_METATYPE( QList<double>);
Q_DECLARE_METATYPE( QList<QGeoCoordinate>);
Q_DECLARE_METATYPE( QGeoRouteRequest::TravelMode);
#endif // TST_QGEOROUTE_H
|