TwiceAsNice  2019-02-18
Public Member Functions | Public Attributes | Private Attributes | List of all members
DiagnosticRecordReceiverImplFixture Struct Reference
Inheritance diagram for DiagnosticRecordReceiverImplFixture:
Inheritance graph
Collaboration diagram for DiagnosticRecordReceiverImplFixture:
Collaboration graph

Public Member Functions

 DiagnosticRecordReceiverImplFixture ()
 
void givenThatReassemblerProduces (MasterBcuDiagnosticRecordPtr record)
 
void whenReceiverGets (ByteBufferPtr rawPacket)
 
void thenReceiverProduces (MasterBcuDiagnosticRecordPtr record)
 
void thenPacketForReassemblerWas (ByteBufferPtr rawPacket)
 
void thenPacketsForReassemblerWere (ByteBufferPtr rawPacket_1, ByteBufferPtr rawPacket_2)
 
void thenNumberOfReassemblingAttemptsWere (unsigned expectedInvocationCount)
 
 DiagnosticRecordReceiverImplFixture ()
 
void givenThatReassemblerProduces (MasterBcuDiagnosticRecordPtr record)
 
void whenReceiverGets (ByteBufferPtr rawPacket)
 
void thenReceiverProduces (MasterBcuDiagnosticRecordPtr record)
 
void thenPacketForReassemblerWas (ByteBufferPtr rawPacket)
 
void thenPacketsForReassemblerWere (ByteBufferPtr rawPacket_1, ByteBufferPtr rawPacket_2)
 
void thenNumberOfReassemblingAttemptsWere (unsigned expectedInvocationCount)
 
- Public Member Functions inherited from Basda::Microgate::TdpPacketFixture
 TdpPacketFixture ()
 
ByteBufferPtr makeRawTdpPacket (uint32_t totalLength, uint32_t startAddress, uint16_t recordId, uint16_t subRecordId, unsigned payloadSizeInByte, const uint8_t *payload)
 
TdpPacketPtr makeTdpPacket (uint32_t totalLength, uint32_t startAddress, uint16_t recordId, uint16_t subRecordId, uint32_t payloadSizeInByte, const uint8_t *payload)
 
uint32_t totalLength (uint32_t x)
 
uint32_t startAddress (uint32_t x)
 
uint16_t recordId (uint16_t x)
 
uint16_t subRecordId (uint16_t x)
 
uint32_t payloadSize (uint32_t x)
 
const uint8_tpayload (const char *x)
 
 TdpPacketFixture ()
 
ByteBufferPtr makeRawTdpPacket (uint32_t totalLength, uint32_t startAddress, uint16_t recordId, uint16_t subRecordId, unsigned payloadSizeInByte, const uint8_t *payload)
 
TdpPacketPtr makeTdpPacket (uint32_t totalLength, uint32_t startAddress, uint16_t recordId, uint16_t subRecordId, uint32_t payloadSizeInByte, const uint8_t *payload)
 
uint32_t totalLength (uint32_t x)
 
uint32_t startAddress (uint32_t x)
 
uint16_t recordId (uint16_t x)
 
uint16_t subRecordId (uint16_t x)
 
uint32_t payloadSize (uint32_t x)
 
const uint8_tpayload (const char *x)
 

Public Attributes

UdpConnectionMockPtr connection
 
DiagnosticRecordReassemblerMockPtr reassembler
 
DiagnosticRecordReceiverImpl receiver
 
ByteBufferPtr rawRecord
 
MasterBcuDiagnosticRecordPtr record
 

Private Attributes

MasterBcuDiagnosticRecordPtr latestProducedDiagnosticRecord_
 

Constructor & Destructor Documentation

◆ DiagnosticRecordReceiverImplFixture() [1/2]

DiagnosticRecordReceiverImplFixture::DiagnosticRecordReceiverImplFixture ( )
inline

◆ DiagnosticRecordReceiverImplFixture() [2/2]

DiagnosticRecordReceiverImplFixture::DiagnosticRecordReceiverImplFixture ( )
inline

Member Function Documentation

◆ givenThatReassemblerProduces() [1/2]

void DiagnosticRecordReceiverImplFixture::givenThatReassemblerProduces ( MasterBcuDiagnosticRecordPtr  record)
inline

◆ givenThatReassemblerProduces() [2/2]

void DiagnosticRecordReceiverImplFixture::givenThatReassemblerProduces ( MasterBcuDiagnosticRecordPtr  record)
inline

◆ thenNumberOfReassemblingAttemptsWere() [1/2]

void DiagnosticRecordReceiverImplFixture::thenNumberOfReassemblingAttemptsWere ( unsigned  expectedInvocationCount)
inline

◆ thenNumberOfReassemblingAttemptsWere() [2/2]

void DiagnosticRecordReceiverImplFixture::thenNumberOfReassemblingAttemptsWere ( unsigned  expectedInvocationCount)
inline

◆ thenPacketForReassemblerWas() [1/2]

void DiagnosticRecordReceiverImplFixture::thenPacketForReassemblerWas ( ByteBufferPtr  rawPacket)
inline

◆ thenPacketForReassemblerWas() [2/2]

void DiagnosticRecordReceiverImplFixture::thenPacketForReassemblerWas ( ByteBufferPtr  rawPacket)
inline

◆ thenPacketsForReassemblerWere() [1/2]

void DiagnosticRecordReceiverImplFixture::thenPacketsForReassemblerWere ( ByteBufferPtr  rawPacket_1,
ByteBufferPtr  rawPacket_2 
)
inline

◆ thenPacketsForReassemblerWere() [2/2]

void DiagnosticRecordReceiverImplFixture::thenPacketsForReassemblerWere ( ByteBufferPtr  rawPacket_1,
ByteBufferPtr  rawPacket_2 
)
inline

◆ thenReceiverProduces() [1/2]

void DiagnosticRecordReceiverImplFixture::thenReceiverProduces ( MasterBcuDiagnosticRecordPtr  record)
inline

◆ thenReceiverProduces() [2/2]

void DiagnosticRecordReceiverImplFixture::thenReceiverProduces ( MasterBcuDiagnosticRecordPtr  record)
inline

◆ whenReceiverGets() [1/2]

void DiagnosticRecordReceiverImplFixture::whenReceiverGets ( ByteBufferPtr  rawPacket)
inline

◆ whenReceiverGets() [2/2]

void DiagnosticRecordReceiverImplFixture::whenReceiverGets ( ByteBufferPtr  rawPacket)
inline

Member Data Documentation

◆ connection

UdpConnectionMockPtr DiagnosticRecordReceiverImplFixture::connection

◆ latestProducedDiagnosticRecord_

MasterBcuDiagnosticRecordPtr DiagnosticRecordReceiverImplFixture::latestProducedDiagnosticRecord_
private

◆ rawRecord

ByteBufferPtr DiagnosticRecordReceiverImplFixture::rawRecord

◆ reassembler

DiagnosticRecordReassemblerMockPtr DiagnosticRecordReceiverImplFixture::reassembler

◆ receiver

DiagnosticRecordReceiverImpl DiagnosticRecordReceiverImplFixture::receiver

◆ record

MasterBcuDiagnosticRecordPtr DiagnosticRecordReceiverImplFixture::record

The documentation for this struct was generated from the following file: