fpp/compiler/tools/fpp-to-cpp/test/component/test-impl/ActiveCommandsTester.ref.cpp
2024-04-09 11:09:39 -07:00

85 lines
2.1 KiB
C++

// ======================================================================
// \title ActiveCommandsTester.cpp
// \author [user name]
// \brief cpp file for ActiveCommands component test harness implementation class
// ======================================================================
#include "ActiveCommandsTester.hpp"
// ----------------------------------------------------------------------
// Construction and destruction
// ----------------------------------------------------------------------
ActiveCommandsTester ::
ActiveCommandsTester() :
ActiveCommandsGTestBase("ActiveCommandsTester", ActiveCommandsTester::MAX_HISTORY_SIZE),
component("ActiveCommands")
{
this->initComponents();
this->connectPorts();
}
ActiveCommandsTester ::
~ActiveCommandsTester()
{
}
// ----------------------------------------------------------------------
// Tests
// ----------------------------------------------------------------------
void ActiveCommandsTester ::
toDo()
{
// TODO
}
// ----------------------------------------------------------------------
// Handlers for typed from ports
// ----------------------------------------------------------------------
void ActiveCommandsTester ::
from_noArgsOut_handler(FwIndexType portNum)
{
this->pushFromPortEntry_noArgsOut();
}
U32 ActiveCommandsTester ::
from_noArgsReturnOut_handler(FwIndexType portNum)
{
this->pushFromPortEntry_noArgsReturnOut();
// TODO: Return a value
}
void ActiveCommandsTester ::
from_typedOut_handler(
FwIndexType portNum,
U32 u32,
F32 f32,
bool b,
const Ports::TypedPortStrings::StringSize80& str1,
const E& e,
const A& a,
const S& s
)
{
this->pushFromPortEntry_typedOut(u32, f32, b, str1, e, a, s);
}
F32 ActiveCommandsTester ::
from_typedReturnOut_handler(
FwIndexType portNum,
U32 u32,
F32 f32,
bool b,
const Ports::TypedReturnPortStrings::StringSize80& str2,
const E& e,
const A& a,
const S& s
)
{
this->pushFromPortEntry_typedReturnOut(u32, f32, b, str2, e, a, s);
// TODO: Return a value
}