UASUnitTest.h 1.33 KB
Newer Older
1 2 3 4 5 6
#ifndef UASUNITTEST_H
#define UASUNITTEST_H

#include <QObject>
#include <QtCore/QString>
#include <QtTest/QtTest>
7 8
#include <QApplication>

9 10
#include "UAS.h"
#include "MAVLinkProtocol.h"
11
#include "SerialLink.h"
12 13
#include "UASInterface.h"
#include "AutoTest.h"
14 15 16 17
#include "LinkManager.h"
#include "UASWaypointManager.h"
#include "SerialLink.h"
#include "LinkInterface.h"
18 19 20 21 22

class UASUnitTest : public QObject
{
    Q_OBJECT
public:
23 24 25 26
  #define  UASID  100
  MAVLinkProtocol* mav;
  UAS* uas;
  UASUnitTest();
27 28

private slots:
29 30 31
  void init();
  void cleanup();
  
32 33 34 35 36 37 38 39 40 41 42 43 44
  void getUASID_test();
  void getUASName_test();
  void getUpTime_test();
  void getCommunicationStatus_test();
  void filterVoltage_test();
  void getAutopilotType_test();
  void setAutopilotType_test();
  void getStatusForCode_test();
  void getLocalX_test();
  void getLocalY_test();
  void getLocalZ_test();
  void getLatitude_test();
  void getLongitude_test();
Don Gagne's avatar
Don Gagne committed
45 46
  void getAltitudeAMSL_test();
  void getAltitudeRelative_test();
47 48 49 50 51 52
  void getRoll_test();
  void getPitch_test();
  void getYaw_test();
  void getSelected_test();
  void getSystemType_test();
  void getAirframe_test();
53
  void setAirframe_test();
54 55
  void getWaypointList_test();
  void signalWayPoint_test();
56
  void getWaypoint_test();
57 58
  void signalUASLink_test();
  void signalIdUASLink_test();
59 60 61 62
};

DECLARE_TEST(UASUnitTest)
#endif // UASUNITTEST_H