theCore C++ embedded framework
bus_unit.cpp File Reference
#include "dev/bus.hpp"
#include "mocks/platform_bus.hpp"
#include <CppUTest/CommandLineTestRunner.h>
Include dependency graph for bus_unit.cpp:

Typedefs

using bus_t = ecl::generic_bus< platform_mock >
 

Functions

 TEST_GROUP (bus)
 
 TEST (bus, init)
 
 TEST (bus, lock_unlock)
 
 TEST (bus, continuation_mode_xfer)
 
 TEST_GROUP (bus_is_ready)
 
 TEST (bus_is_ready, set_buffers_invalid)
 
 TEST (bus_is_ready, set_buffers)
 
 TEST (bus_is_ready, set_buffers_non_equal_size)
 
 TEST (bus_is_ready, size_is_zero)
 
 TEST (bus_is_ready, consequent_calls_and_buffers_reset)
 
 TEST (bus_is_ready, fill_tx)
 
 TEST (bus_is_ready, xfer_error)
 
 TEST (bus_is_ready, async_xfer_error)
 
 TEST (bus_is_ready, async_xfer_valid)
 
 TEST (bus_is_ready, async_deffered)
 
 TEST (bus_is_ready, cancel_async_xfer)
 
 TEST (bus_is_ready, cancel_deferred_xfer)
 
 TEST (bus_is_ready, xfer_timeout)
 
int main (int argc, char *argv[])
 

Typedef Documentation

◆ bus_t

using bus_t = ecl::generic_bus<platform_mock>

Function Documentation

◆ TEST_GROUP() [1/2]

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

◆ TEST() [1/16]

TEST ( bus  ,
init   
)
Here is the call graph for this function:

◆ TEST() [2/16]

TEST ( bus  ,
lock_unlock   
)
Here is the call graph for this function:

◆ TEST() [3/16]

TEST ( bus  ,
continuation_mode_xfer   
)
Here is the call graph for this function:

◆ TEST_GROUP() [2/2]

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

◆ TEST() [4/16]

TEST ( bus_is_ready  ,
set_buffers_invalid   
)
Here is the call graph for this function:

◆ TEST() [5/16]

TEST ( bus_is_ready  ,
set_buffers   
)
Here is the call graph for this function:

◆ TEST() [6/16]

TEST ( bus_is_ready  ,
set_buffers_non_equal_size   
)
Here is the call graph for this function:

◆ TEST() [7/16]

TEST ( bus_is_ready  ,
size_is_zero   
)
Here is the call graph for this function:

◆ TEST() [8/16]

TEST ( bus_is_ready  ,
consequent_calls_and_buffers_reset   
)
Here is the call graph for this function:

◆ TEST() [9/16]

TEST ( bus_is_ready  ,
fill_tx   
)
Here is the call graph for this function:

◆ TEST() [10/16]

TEST ( bus_is_ready  ,
xfer_error   
)
Here is the call graph for this function:

◆ TEST() [11/16]

TEST ( bus_is_ready  ,
async_xfer_error   
)
Here is the call graph for this function:

◆ TEST() [12/16]

TEST ( bus_is_ready  ,
async_xfer_valid   
)
Here is the call graph for this function:

◆ TEST() [13/16]

TEST ( bus_is_ready  ,
async_deffered   
)
Here is the call graph for this function:

◆ TEST() [14/16]

TEST ( bus_is_ready  ,
cancel_async_xfer   
)
Here is the call graph for this function:

◆ TEST() [15/16]

TEST ( bus_is_ready  ,
cancel_deferred_xfer   
)
Here is the call graph for this function:

◆ TEST() [16/16]

TEST ( bus_is_ready  ,
xfer_timeout   
)
Here is the call graph for this function:

◆ main()

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