theCore C++ embedded framework
serial_unit.cpp File Reference
#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>
Include dependency graph for serial_unit.cpp:

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[])
 

Typedef Documentation

◆ serial_t

using serial_t = ecl::serial<platform_mock>

Function Documentation

◆ TEST_GROUP()

TEST_GROUP ( serial  )
Here is the call graph for this function:

◆ TEST() [1/9]

TEST ( serial  ,
recv_byte_block_unblock   
)
Here is the call graph for this function:

◆ TEST() [2/9]

TEST ( serial  ,
multiple_recv_no_block   
)
Here is the call graph for this function:

◆ TEST() [3/9]

TEST ( serial  ,
multiple_recv_block_and_unblock   
)
Here is the call graph for this function:

◆ TEST() [4/9]

TEST ( serial  ,
recv_bigger_than_available   
)
Here is the call graph for this function:

◆ TEST() [5/9]

TEST ( serial  ,
try_start_xfer   
)

◆ TEST() [6/9]

TEST ( serial  ,
send_byte_basic   
)
Here is the call graph for this function:

◆ TEST() [7/9]

TEST ( serial  ,
send_full_buffer   
)
Here is the call graph for this function:

◆ TEST() [8/9]

TEST ( serial  ,
send_buf_larger   
)
Here is the call graph for this function:

◆ IGNORE_TEST()

IGNORE_TEST ( serial  ,
send_by_parts   
)
Here is the call graph for this function:

◆ TEST() [9/9]

TEST ( serial  ,
send_recv_mixed   
)
Here is the call graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)