Firmware
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
MavlinkFtpTest Class Reference
Inheritance diagram for MavlinkFtpTest:
UnitTest

Classes

struct  BurstInfo
 Worker data for stream handler. More...
 

Public Member Functions

virtual bool run_tests (void)
 Runs all the unit tests.
 
 MavlinkFtpTest (const MavlinkFtpTest &)
 
MavlinkFtpTestoperator= (const MavlinkFtpTest &)
 
- Public Member Functions inherited from UnitTest
void print_results ()
 Prints results from running of unit tests.
 

Static Public Member Functions

static void receive_message_handler_generic (const mavlink_file_transfer_protocol_t *ftp_req, void *worker_data)
 Static method used as callback from MavlinkFTP for generic use. More...
 
static void receive_message_handler_burst (const mavlink_file_transfer_protocol_t *ftp_req, void *worker_data)
 Static method used as callback from MavlinkFTP for stream download testing. More...
 

Static Public Attributes

static const uint8_t serverSystemId = 50
 System ID for server.
 
static const uint8_t serverComponentId = 1
 Component ID for server.
 
static const uint8_t serverChannel = 0
 Channel to send to.
 
static const uint8_t clientSystemId = 1
 System ID for client.
 
static const uint8_t clientComponentId = 0
 Component ID for client.
 

Additional Inherited Members

- Protected Member Functions inherited from UnitTest
void _print_assert (const char *msg, const char *test, const char *file, int line)
 
void _print_compare (const char *msg, const char *v1_text, int v1, const char *v2_text, int v2, const char *file, int line)
 
- Protected Attributes inherited from UnitTest
int _tests_run {0}
 The number of individual unit tests run.
 
int _tests_failed {0}
 The number of unit tests which failed.
 
int _tests_passed {0}
 The number of unit tests which passed.
 
int _assertions {0}
 Total number of assertions tested by all unit tests.
 

Member Function Documentation

§ receive_message_handler_burst()

void MavlinkFtpTest::receive_message_handler_burst ( const mavlink_file_transfer_protocol_t *  ftp_req,
void *  worker_data 
)
static

Static method used as callback from MavlinkFTP for stream download testing.

This method will be called by MavlinkFTP when it needs to send a message out on Mavlink.

§ receive_message_handler_generic()

void MavlinkFtpTest::receive_message_handler_generic ( const mavlink_file_transfer_protocol_t *  ftp_req,
void *  worker_data 
)
static

Static method used as callback from MavlinkFTP for generic use.

This method will be called by MavlinkFTP when it needs to send a message out on Mavlink.


The documentation for this class was generated from the following files: