Leosac  0.8.0
Open Source Access Control
Leosac::Test::LedTest Class Reference
+ Inheritance diagram for Leosac::Test::LedTest:
+ Collaboration diagram for Leosac::Test::LedTest:

Public Member Functions

 LedTest ()
 ~LedTest ()
- 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 gpio_
zmqpp::actor gpio_actor_
- 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...

Detailed Description

Definition at line 35 of file Led.cpp.

Constructor & Destructor Documentation

◆ LedTest()

Leosac::Test::LedTest::LedTest ( )

Definition at line 58 of file Led.cpp.

◆ ~LedTest()

Leosac::Test::LedTest::~LedTest ( )

Definition at line 66 of file Led.cpp.

Member Function Documentation

◆ run_module()

virtual bool Leosac::Test::LedTest::run_module ( zmqpp::socket *  pipe)

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 39 of file Led.cpp.

Member Data Documentation

◆ gpio_

FakeGPIO Leosac::Test::LedTest::gpio_

Definition at line 70 of file Led.cpp.

◆ gpio_actor_

zmqpp::actor Leosac::Test::LedTest::gpio_actor_

Definition at line 73 of file Led.cpp.

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