SatCtrlMsgContDelOnTestCase Class Reference

Test case to unit test satellite control message container with flag deletedOnRead set. More...

+ Inheritance diagram for SatCtrlMsgContDelOnTestCase:
+ Collaboration diagram for SatCtrlMsgContDelOnTestCase:

Public Member Functions

 SatCtrlMsgContDelOnTestCase ()
 
virtual ~SatCtrlMsgContDelOnTestCase ()
 
- Public Member Functions inherited from SatCtrlMsgContBaseTestCase
 SatCtrlMsgContBaseTestCase ()
 
 SatCtrlMsgContBaseTestCase (std::string info)
 
virtual ~SatCtrlMsgContBaseTestCase ()
 
void AddMessage (Ptr< SatControlMessage > msg)
 
void GetMessage (uint32_t msgId)
 

Protected Member Functions

virtual void DoRun (void)
 

Additional Inherited Members

- Protected Attributes inherited from SatCtrlMsgContBaseTestCase
Ptr< SatControlMsgContainerm_container
 
std::vector< Ptr< SatControlMessage > > m_msgsRead
 

Detailed Description

Test case to unit test satellite control message container with flag deletedOnRead set.

This case tests that SatControlMsgContainer can be created with flag deletedOnRead set and messages can be read correctly in set store window time.

  1. Create SatControlMsgContainer object with deletedOnRead flag set true.
  2. Set messages to container at different points of time (method Add).
  3. Get messages with given IDs from container at some points of time (method Get).

Expected result: Message can be read only once, if the store time is not expired for the message. NULL is returned by Get method, if store time is expired or if same message is tried to read twice.

Definition at line 106 of file satellite-control-msg-container-test.cc.

Constructor & Destructor Documentation

◆ SatCtrlMsgContDelOnTestCase()

SatCtrlMsgContDelOnTestCase::SatCtrlMsgContDelOnTestCase ( )
inline

Definition at line 109 of file satellite-control-msg-container-test.cc.

◆ ~SatCtrlMsgContDelOnTestCase()

virtual SatCtrlMsgContDelOnTestCase::~SatCtrlMsgContDelOnTestCase ( )
inlinevirtual

Definition at line 115 of file satellite-control-msg-container-test.cc.

Member Function Documentation

◆ DoRun()

void SatCtrlMsgContDelOnTestCase::DoRun ( void  )
protectedvirtual

Implements SatCtrlMsgContBaseTestCase.

Definition at line 124 of file satellite-control-msg-container-test.cc.

References SatCtrlMsgContBaseTestCase::AddMessage(), and SatCtrlMsgContBaseTestCase::GetMessage().

+ Here is the call graph for this function:

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