TwiceAsNice  2019-02-18
Classes | Macros | Typedefs | Functions
BcuDriverImplTest.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "Microgate/Driver/BcuDriverImpl.h"
#include "test/Device/Microgate/UdpConnectionMock.h"
#include "Microgate/Driver/Exception.h"
#include "Microgate/Mgp/BcuCommand.h"
#include "Microgate/Mgp/MgpHeader.h"
#include <boost/make_shared.hpp>
#include <exception>
Include dependency graph for BcuDriverImplTest.cpp:

Classes

struct  Fixture
 
struct  Fixture::ZeroInitializedReplyBuilder_
 
struct  Fixture::MemoryBufferCheck
 
struct  Fixture::BcuReadCommandCheck
 
struct  Fixture::BcuReplyAdd
 

Macros

#define BOOST_TEST_DYN_LINK
 
#define BOOST_TEST_MODULE   BcuDriverImpl
 

Typedefs

typedef BcuDriverImpl::RequestPartition RequestPartition
 
typedef BcuDriverImpl::RequestPartitionList RequestPartitionList
 

Functions

 BOOST_AUTO_TEST_CASE (RequestPartitionsShouldBeComparable)
 
 BOOST_AUTO_TEST_CASE (test_partition)
 
 BOOST_AUTO_TEST_CASE (test_read_aligned_address_and_small_payload)
 
 BOOST_AUTO_TEST_CASE (test_read_from_aligned_address_and_payload)
 
 BOOST_AUTO_TEST_CASE (test_read_from_aligned_address_and_big_payload)
 
 BOOST_AUTO_TEST_CASE (test_read_from_aligned_address_and_maximum_MGP_packet)
 
 BOOST_AUTO_TEST_CASE (test_read_from_aligned_address_and_two_maximum_MGP_packets)
 
 BOOST_AUTO_TEST_CASE (test_read_from_unaligned_address_with_small_payload)
 
 BOOST_AUTO_TEST_CASE (test_read_from_unaligned_address_and_a_friendly_payload)
 
 BOOST_AUTO_TEST_CASE (test_read_from_unaligned_address_and_huge_payload)
 
 BOOST_AUTO_TEST_CASE (test_write_from_unaligned_address_and_huge_payload)
 
 BOOST_AUTO_TEST_CASE (optimisticDspRead)
 
 BOOST_AUTO_TEST_CASE (shouldComplainIfReplyForReadOperationIsInvalid)
 
 BOOST_AUTO_TEST_CASE (shouldComplainAboutBcuInternalCodeExecutionReadTimeoutReply)
 
 BOOST_AUTO_TEST_CASE (shouldIgnoreALimitOfBcuInternalCodeExecutionReadTimeouts)
 
 BOOST_AUTO_TEST_CASE (shouldComplainAboutBcuInternalCodeExecutionWriteTimeouts)
 
 BOOST_AUTO_TEST_CASE (shouldIgnoreALimitOfBcuInternalCodeExecutionWriteTimeouts)
 
 BOOST_AUTO_TEST_CASE (shouldComplainIfReplyPayloadSizeIsInvalid)
 
 BOOST_AUTO_TEST_CASE (ShouldWrapMessageIdAt127)
 
 BOOST_AUTO_TEST_CASE (optimisticDspWrite)
 
 BOOST_AUTO_TEST_CASE (ShouldThrowExceptionIfReplyForWriteOperationIsInvalid)
 
 BOOST_AUTO_TEST_CASE (construction_ReadRequest)
 
 BOOST_AUTO_TEST_CASE (construction_WriteRequest)
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   BcuDriverImpl

Typedef Documentation

◆ RequestPartition

◆ RequestPartitionList

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/23]

BOOST_AUTO_TEST_CASE ( RequestPartitionsShouldBeComparable  )

◆ BOOST_AUTO_TEST_CASE() [2/23]

BOOST_AUTO_TEST_CASE ( test_partition  )

◆ BOOST_AUTO_TEST_CASE() [3/23]

BOOST_AUTO_TEST_CASE ( test_read_aligned_address_and_small_payload  )

◆ BOOST_AUTO_TEST_CASE() [4/23]

BOOST_AUTO_TEST_CASE ( test_read_from_aligned_address_and_payload  )

◆ BOOST_AUTO_TEST_CASE() [5/23]

BOOST_AUTO_TEST_CASE ( test_read_from_aligned_address_and_big_payload  )

◆ BOOST_AUTO_TEST_CASE() [6/23]

BOOST_AUTO_TEST_CASE ( test_read_from_aligned_address_and_maximum_MGP_packet  )

◆ BOOST_AUTO_TEST_CASE() [7/23]

BOOST_AUTO_TEST_CASE ( test_read_from_aligned_address_and_two_maximum_MGP_packets  )

◆ BOOST_AUTO_TEST_CASE() [8/23]

BOOST_AUTO_TEST_CASE ( test_read_from_unaligned_address_with_small_payload  )

◆ BOOST_AUTO_TEST_CASE() [9/23]

BOOST_AUTO_TEST_CASE ( test_read_from_unaligned_address_and_a_friendly_payload  )

◆ BOOST_AUTO_TEST_CASE() [10/23]

BOOST_AUTO_TEST_CASE ( test_read_from_unaligned_address_and_huge_payload  )

◆ BOOST_AUTO_TEST_CASE() [11/23]

BOOST_AUTO_TEST_CASE ( test_write_from_unaligned_address_and_huge_payload  )

◆ BOOST_AUTO_TEST_CASE() [12/23]

BOOST_AUTO_TEST_CASE ( optimisticDspRead  )

◆ BOOST_AUTO_TEST_CASE() [13/23]

BOOST_AUTO_TEST_CASE ( shouldComplainIfReplyForReadOperationIsInvalid  )

◆ BOOST_AUTO_TEST_CASE() [14/23]

BOOST_AUTO_TEST_CASE ( shouldComplainAboutBcuInternalCodeExecutionReadTimeoutReply  )

◆ BOOST_AUTO_TEST_CASE() [15/23]

BOOST_AUTO_TEST_CASE ( shouldIgnoreALimitOfBcuInternalCodeExecutionReadTimeouts  )

◆ BOOST_AUTO_TEST_CASE() [16/23]

BOOST_AUTO_TEST_CASE ( shouldComplainAboutBcuInternalCodeExecutionWriteTimeouts  )

◆ BOOST_AUTO_TEST_CASE() [17/23]

BOOST_AUTO_TEST_CASE ( shouldIgnoreALimitOfBcuInternalCodeExecutionWriteTimeouts  )

◆ BOOST_AUTO_TEST_CASE() [18/23]

BOOST_AUTO_TEST_CASE ( shouldComplainIfReplyPayloadSizeIsInvalid  )

◆ BOOST_AUTO_TEST_CASE() [19/23]

BOOST_AUTO_TEST_CASE ( ShouldWrapMessageIdAt127  )

◆ BOOST_AUTO_TEST_CASE() [20/23]

BOOST_AUTO_TEST_CASE ( optimisticDspWrite  )

◆ BOOST_AUTO_TEST_CASE() [21/23]

BOOST_AUTO_TEST_CASE ( ShouldThrowExceptionIfReplyForWriteOperationIsInvalid  )

◆ BOOST_AUTO_TEST_CASE() [22/23]

BOOST_AUTO_TEST_CASE ( construction_ReadRequest  )

◆ BOOST_AUTO_TEST_CASE() [23/23]

BOOST_AUTO_TEST_CASE ( construction_WriteRequest  )