SmartTester  2.0.0
Smart Tester is unit testing and regression testing framework used for testing SmartCGMS system.
Public Member Functions | List of all members
TestFilter Class Reference

#include <TestFilter.h>

Inheritance diagram for TestFilter:
Inheritance graph
[legend]
Collaboration diagram for TestFilter:
Collaboration graph
[legend]

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
 

Detailed Description

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.

Member Function Documentation

◆ Execute()

HRESULT IfaceCalling TestFilter::Execute ( scgms::IDevice_Event *  event)
final

Copying acquired data and releasing, so we don't need to manually release in every test


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