Librairie xbee.
Dependents: NerfUS-Coord NerfUSTarget
Fork of APP3_xbee by
tests/test.h@33:da71d952fcd6, 2017-04-10 (annotated)
- Committer:
- GaiSensei
- Date:
- Mon Apr 10 17:33:13 2017 +0000
- Revision:
- 33:da71d952fcd6
- Parent:
- 17:969aa15f783d
Only handle nerfus transmit requests
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
GaiSensei | 17:969aa15f783d | 1 | ///////////////////////////////////////////////////////////// |
GaiSensei | 17:969aa15f783d | 2 | // APP 3 // |
GaiSensei | 17:969aa15f783d | 3 | // // |
GaiSensei | 17:969aa15f783d | 4 | // Université de Sherbrooke // |
GaiSensei | 17:969aa15f783d | 5 | // Génie informatique // |
GaiSensei | 17:969aa15f783d | 6 | // Session 5, Hiver 2017 // |
GaiSensei | 17:969aa15f783d | 7 | // // |
GaiSensei | 17:969aa15f783d | 8 | // Date: 14 février 2017 // |
GaiSensei | 17:969aa15f783d | 9 | // // |
GaiSensei | 17:969aa15f783d | 10 | // Auteurs: Maxime Dupuis, dupm2216 // |
GaiSensei | 17:969aa15f783d | 11 | // Bruno Allaire-Lemay, allb2701 // |
GaiSensei | 17:969aa15f783d | 12 | ///////////////////////////////////////////////////////////// |
GaiSensei | 17:969aa15f783d | 13 | |
GaiSensei | 17:969aa15f783d | 14 | #ifndef TEST_HPP |
GaiSensei | 17:969aa15f783d | 15 | #define TEST_HPP |
GaiSensei | 17:969aa15f783d | 16 | |
GaiSensei | 17:969aa15f783d | 17 | #include <vector> |
GaiSensei | 17:969aa15f783d | 18 | #include "xbee.h" |
GaiSensei | 17:969aa15f783d | 19 | |
GaiSensei | 17:969aa15f783d | 20 | bool vectors_are_equal(const vector<char> v1, const vector<char> v2); |
GaiSensei | 17:969aa15f783d | 21 | |
GaiSensei | 17:969aa15f783d | 22 | void run_all_tests(); |
GaiSensei | 17:969aa15f783d | 23 | void vectors_are_equal_test(); |
GaiSensei | 17:969aa15f783d | 24 | vector<char> construct_vector(const char* content, int length); |
GaiSensei | 17:969aa15f783d | 25 | void generate_transmit_request_test(); |
GaiSensei | 17:969aa15f783d | 26 | void generate_led_high_command_test(); |
GaiSensei | 17:969aa15f783d | 27 | void generate_led_low_command_test(); |
GaiSensei | 17:969aa15f783d | 28 | void parse_receive_packet_test(); |
GaiSensei | 17:969aa15f783d | 29 | void parse_frame_parses_receive_packet_test(); |
GaiSensei | 17:969aa15f783d | 30 | void parse_frame_parses_transmit_status_test(); |
GaiSensei | 17:969aa15f783d | 31 | void parse_frame_parses_at_command_response_test(); |
GaiSensei | 17:969aa15f783d | 32 | void parse_frame_parses_remote_command_response_test(); |
GaiSensei | 17:969aa15f783d | 33 | void handle_frame_adds_parsed_frame_to_mailbox_test(); |
GaiSensei | 17:969aa15f783d | 34 | |
GaiSensei | 17:969aa15f783d | 35 | void test_create_vector_by_copy_test(); |
GaiSensei | 17:969aa15f783d | 36 | |
GaiSensei | 17:969aa15f783d | 37 | void string_to_data_test(); |
GaiSensei | 17:969aa15f783d | 38 | void hexa_char_to_dec_test(); |
GaiSensei | 17:969aa15f783d | 39 | |
GaiSensei | 17:969aa15f783d | 40 | #endif |