theCore C++ embedded framework
|
#include <iostream>
#include "dev/serial.hpp"
#include <CppUTest/TestHarness.h>
#include <CppUTest/CommandLineTestRunner.h>
#include <CppUTestExt/MockSupport.h>
#include "mocks/platform_bus.hpp"
#include "ecl/thread/semaphore.hpp"
#include <thread>
#include <numeric>
Typedefs | |
using | serial_t = ecl::serial< platform_mock > |
Functions | |
TEST_GROUP (serial) | |
TEST (serial, recv_byte_block_unblock) | |
TEST (serial, multiple_recv_no_block) | |
TEST (serial, multiple_recv_block_and_unblock) | |
TEST (serial, recv_bigger_than_available) | |
TEST (serial, try_start_xfer) | |
TEST (serial, send_byte_basic) | |
TEST (serial, send_full_buffer) | |
TEST (serial, send_buf_larger) | |
IGNORE_TEST (serial, send_by_parts) | |
TEST (serial, send_recv_mixed) | |
int | main (int argc, char *argv[]) |
using serial_t = ecl::serial<platform_mock> |
TEST_GROUP | ( | serial | ) |
TEST | ( | serial | , |
recv_byte_block_unblock | |||
) |
TEST | ( | serial | , |
multiple_recv_no_block | |||
) |
TEST | ( | serial | , |
multiple_recv_block_and_unblock | |||
) |
TEST | ( | serial | , |
recv_bigger_than_available | |||
) |
TEST | ( | serial | , |
try_start_xfer | |||
) |
TEST | ( | serial | , |
send_byte_basic | |||
) |
TEST | ( | serial | , |
send_full_buffer | |||
) |
TEST | ( | serial | , |
send_buf_larger | |||
) |
IGNORE_TEST | ( | serial | , |
send_by_parts | |||
) |
TEST | ( | serial | , |
send_recv_mixed | |||
) |
int main | ( | int | argc, |
char * | argv[] | ||
) |