Rev 513 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
#ifndef HANDLER_TEST_H
#define HANDLER_TEST_H
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
#include "../libMK/Handler.h"
#include "../libMK/Kopter.h"
#include "../libMK/Communication.h"
class HandlerTest : public CPPUNIT_NS :: TestFixture
{
CPPUNIT_TEST_SUITE (HandlerTest);
CPPUNIT_TEST (get_flightctrl_settings_test);
CPPUNIT_TEST (set_flightctrl_settings_test);
CPPUNIT_TEST (motor_test_test);
CPPUNIT_TEST (reset_motor_test);
CPPUNIT_TEST (read_motor_mixer_test);
CPPUNIT_TEST (write_motor_mixer_test);
CPPUNIT_TEST (get_motor_config_test);
//NaviCtrl commands
CPPUNIT_TEST (set_navictrl_debug_test);
CPPUNIT_TEST (stop_navictrl_debug_test);
CPPUNIT_TEST (send_waypoint_test);
CPPUNIT_TEST (add_waypoint_test);
CPPUNIT_TEST (delete_waypoints_test);
//switch between MK modules/components
CPPUNIT_TEST (switch_navictrl_test);
CPPUNIT_TEST (switch_flightctrl_test);
CPPUNIT_TEST (switch_mk3mag_test);
//commands for MK3MAG
//commands for all modules/components
CPPUNIT_TEST (set_all_debug_test);
CPPUNIT_TEST (stop_all_debug_test);
CPPUNIT_TEST (get_analog_test);
CPPUNIT_TEST (show_lcd_test);
CPPUNIT_TEST (lcd_up_test);
CPPUNIT_TEST (lcd_down_test);
CPPUNIT_TEST (get_version_test);
CPPUNIT_TEST (get_ppm_channels_test);
CPPUNIT_TEST_SUITE_END ();
public:
void setUp (void);
void tearDown (void);
protected:
void get_flightctrl_settings_test(void);
void set_flightctrl_settings_test(void);
void motor_test_test(void);
void reset_motor_test(void);
void read_motor_mixer_test(void);
void write_motor_mixer_test(void);
void get_motor_config_test(void);
//NaviCtrl commands
void set_navictrl_debug_test(void);
void stop_navictrl_debug_test(void);
void send_waypoint_test(void);
void add_waypoint_test(void);
void delete_waypoints_test(void);
//switch between MK modules/components
void switch_navictrl_test(void);
void switch_flightctrl_test(void);
void switch_mk3mag_test(void);
//commands for MK3MAG
//commands for all modules/components
void set_all_debug_test(void);
void stop_all_debug_test(void);
void get_analog_test(void);
void show_lcd_test(void);
void lcd_up_test(void);
void lcd_down_test(void);
void get_version_test(void);
void get_ppm_channels_test(void);
private:
KopterData data;
Communication com;
Handler * handler;
};
CPPUNIT_TEST_SUITE_REGISTRATION( HandlerTest );
#endif