Leosac
0.8.0
Open Source Access Control
|
Public Member Functions | |
WiegandReaderTest () | |
~WiegandReaderTest () | |
Public Member Functions inherited from Leosac::Test::Helper::TestHelper | |
TestHelper () | |
virtual | ~TestHelper () |
virtual void | SetUp () override final |
We need this 2-step initialization to prevent calling virtual method (run_module) in constructor. More... | |
Public Attributes | |
FakeGPIO | high_ |
FakeGPIO | low_ |
Public Attributes inherited from Leosac::Test::Helper::TestHelper | |
zmqpp::context | ctx_ |
A context for the test case. More... | |
MessageBus | bus_ |
A BUS identical to the one spawned by core. More... | |
zmqpp::socket | bus_sub_ |
A SUB socket connected to the previous bus. More... | |
zmqpp::socket | bus_push_ |
A PUSH socket to write on the bus. More... | |
std::unique_ptr< zmqpp::actor > | module_actor_ |
An actor, to run the module code the same way it would be run by the core. More... | |
Private Member Functions | |
virtual bool | run_module (zmqpp::socket *pipe) override |
Called in the module's actor's thread. More... | |
Definition at line 34 of file WiegandReader.cpp.
|
inline |
Definition at line 55 of file WiegandReader.cpp.
|
inline |
Definition at line 63 of file WiegandReader.cpp.
|
inlineoverrideprivatevirtual |
Called in the module's actor's thread.
Override this: Construct configuration for the module then run_test_module()
with appropriate parameters.
Implements Leosac::Test::Helper::TestHelper.
Definition at line 37 of file WiegandReader.cpp.
FakeGPIO Leosac::Test::WiegandReaderTest::high_ |
Definition at line 67 of file WiegandReader.cpp.
FakeGPIO Leosac::Test::WiegandReaderTest::low_ |
Definition at line 68 of file WiegandReader.cpp.