|
ADTF
|
#include <test_logger.h>
Classes | |
| struct | tMessage |
| struct | tMessages |
Public Member Functions | |
| cTestLogger () | |
| ~cTestLogger () | |
| tMessages | GetCurrentMessages (bool bClear=true) |
| bool | WaitForMessage (base::flash::tNanoSeconds tmTimeout=base::flash::tNanoSeconds{-1}) |
Utility class to record all log messages in an ADTF System during tests.
| adtf::system::testing::lucky::cTestLogger::cTestLogger | ( | ) |
Constructor. This registers this logger at the logging service.
| adtf::system::testing::lucky::cTestLogger::~cTestLogger | ( | ) |
Destructor.
| tMessages adtf::system::testing::lucky::cTestLogger::GetCurrentMessages | ( | bool | bClear = true | ) |
Returns all messages currently received.
| [in] | bClear | The internal message buffer is cleared. |
| bool adtf::system::testing::lucky::cTestLogger::WaitForMessage | ( | base::flash::tNanoSeconds | tmTimeout = base::flash::tNanoSeconds{-1} | ) |
This blocks the calling context until either a message was received or the given timeout expired.
| [in] | tmTimeout | The timeout, -1 => wait indefinitely. |