mirror of
https://github.com/nasa/fpp.git
synced 2025-12-16 21:35:53 -06:00
89 lines
2.2 KiB
C++
89 lines
2.2 KiB
C++
// ======================================================================
|
|
// \title ActiveTestTester.cpp
|
|
// \author [user name]
|
|
// \brief cpp file for ActiveTest component test harness implementation class
|
|
// ======================================================================
|
|
|
|
#include "ActiveTestTester.hpp"
|
|
|
|
namespace M {
|
|
|
|
// ----------------------------------------------------------------------
|
|
// Construction and destruction
|
|
// ----------------------------------------------------------------------
|
|
|
|
ActiveTestTester ::
|
|
ActiveTestTester() :
|
|
ActiveTestGTestBase("ActiveTestTester", ActiveTestTester::MAX_HISTORY_SIZE),
|
|
component("ActiveTest")
|
|
{
|
|
this->initComponents();
|
|
this->connectPorts();
|
|
}
|
|
|
|
ActiveTestTester ::
|
|
~ActiveTestTester()
|
|
{
|
|
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
// Tests
|
|
// ----------------------------------------------------------------------
|
|
|
|
void ActiveTestTester ::
|
|
toDo()
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
// Handlers for typed from ports
|
|
// ----------------------------------------------------------------------
|
|
|
|
void ActiveTestTester ::
|
|
from_noArgsOut_handler(FwIndexType portNum)
|
|
{
|
|
this->pushFromPortEntry_noArgsOut();
|
|
}
|
|
|
|
U32 ActiveTestTester ::
|
|
from_noArgsReturnOut_handler(FwIndexType portNum)
|
|
{
|
|
this->pushFromPortEntry_noArgsReturnOut();
|
|
// TODO: Return a value
|
|
}
|
|
|
|
void ActiveTestTester ::
|
|
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 ActiveTestTester ::
|
|
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
|
|
}
|
|
|
|
}
|