theCore C++ embedded framework
|
#include <dev/hm10.hpp>
#include <CppUTest/TestHarness.h>
#include <CppUTest/CommandLineTestRunner.h>
Typedefs | |
using | serial_mock_inst = ecl::serial< int > |
using | hm10_sync = ecl::hm10_sync< int > |
Functions | |
TEST_GROUP (hm10_sync_mode) | |
static void | do_valid_init () |
TEST (hm10_sync_mode, init) | |
TEST (hm10_sync_mode, init_partial_resp) | |
TEST (hm10_sync_mode, init_invalid_resp) | |
TEST (hm10_sync_mode, init_no_resp) | |
TEST_GROUP (hm10_sync_mode_cmd) | |
template<typename Runner > | |
static void | hm10_check_command (Runner r, ecl::err exp_ret, const std::string &exp_tx, const std::string &rx) |
TEST (hm10_sync_mode_cmd, set_pin) | |
TEST (hm10_sync_mode_cmd, set_pin_inval) | |
TEST (hm10_sync_mode_cmd, get_pin) | |
TEST (hm10_sync_mode_cmd, get_pin_inv_header) | |
TEST (hm10_sync_mode_cmd, get_pin_inv_pin) | |
TEST (hm10_sync_mode_cmd, set_imme) | |
TEST (hm10_sync_mode_cmd, set_imme_inval) | |
TEST (hm10_sync_mode_cmd, get_imme) | |
TEST (hm10_sync_mode_cmd, get_imme_inval) | |
TEST (hm10_sync_mode_cmd, disconnect) | |
TEST (hm10_sync_mode_cmd, disconnect_inval) | |
int | main (int argc, char *argv[]) |
using serial_mock_inst = ecl::serial<int> |
using hm10_sync = ecl::hm10_sync<int> |
TEST_GROUP | ( | hm10_sync_mode | ) |
|
static |
TEST | ( | hm10_sync_mode | , |
init | |||
) |
TEST | ( | hm10_sync_mode | , |
init_partial_resp | |||
) |
TEST | ( | hm10_sync_mode | , |
init_invalid_resp | |||
) |
TEST | ( | hm10_sync_mode | , |
init_no_resp | |||
) |
TEST_GROUP | ( | hm10_sync_mode_cmd | ) |
|
static |
TEST | ( | hm10_sync_mode_cmd | , |
set_pin | |||
) |
TEST | ( | hm10_sync_mode_cmd | , |
set_pin_inval | |||
) |
TEST | ( | hm10_sync_mode_cmd | , |
get_pin | |||
) |
TEST | ( | hm10_sync_mode_cmd | , |
get_pin_inv_header | |||
) |
TEST | ( | hm10_sync_mode_cmd | , |
get_pin_inv_pin | |||
) |
TEST | ( | hm10_sync_mode_cmd | , |
set_imme | |||
) |
TEST | ( | hm10_sync_mode_cmd | , |
set_imme_inval | |||
) |
TEST | ( | hm10_sync_mode_cmd | , |
get_imme | |||
) |
TEST | ( | hm10_sync_mode_cmd | , |
get_imme_inval | |||
) |
TEST | ( | hm10_sync_mode_cmd | , |
disconnect | |||
) |
TEST | ( | hm10_sync_mode_cmd | , |
disconnect_inval | |||
) |
int main | ( | int | argc, |
char * | argv[] | ||
) |