SmartTester
2.0.0
Smart Tester is unit testing and regression testing framework used for testing SmartCGMS system.
|
#include <TestFilter.h>
Public Member Functions | |
const scgms::TDevice_Event & | getLastReceivedEvent () |
Returns a reference to the event data we got from the tested filter. | |
const scgms::TDevice_Event & | getFirstReceivedEvent () |
Returns a reference to the first event we received from the tested filter. | |
void | clearReceivedEvents () noexcept |
Clears the vector of received events. | |
std::size_t | getUniqueSegmentIdsFromReceivedEventsCount () |
Returns the number of unique segment id's on the vector of received events. | |
const scgms::TDevice_Event * | getLastNonShutDownEvent () |
std::size_t | getReceivedEventsCount () |
HRESULT IfaceCalling | Execute (scgms::IDevice_Event *event) final |
HRESULT IfaceCalling | Configure (IFilter_Configuration *configuration, refcnt::wstr_list *error_description) final |
Class representing our custom test filter. This filter is appended to the tested filter and it's only function is to "catch" executed event and store it in attribute, so we can check it in the test function later.
|
final |
Copying acquired data and releasing, so we don't need to manually release in every test