fpp/compiler/tools/fpp-to-cpp/test/component/test-impl/PassiveEventsTester.ref.hpp

104 lines
3.0 KiB
C++

// ======================================================================
// \title PassiveEventsTester.hpp
// \author Generated by fpp-to-cpp
// \brief hpp file for PassiveEvents component test harness implementation class
// ======================================================================
#ifndef PassiveEventsTester_HPP
#define PassiveEventsTester_HPP
#include "PassiveEventsGTestBase.hpp"
#include "PassiveEvents.hpp"
class PassiveEventsTester :
public PassiveEventsGTestBase
{
public:
// ----------------------------------------------------------------------
// Constants
// ----------------------------------------------------------------------
// Maximum size of histories storing events, telemetry, and port outputs
static const NATIVE_INT_TYPE MAX_HISTORY_SIZE = 10;
// Instance ID supplied to the component instance under test
static const NATIVE_INT_TYPE TEST_INSTANCE_ID = 0;
public:
// ----------------------------------------------------------------------
// Construction and destruction
// ----------------------------------------------------------------------
//! Construct object PassiveEventsTester
PassiveEventsTester();
//! Destroy object PassiveEventsTester
~PassiveEventsTester();
public:
// ----------------------------------------------------------------------
// Tests
// ----------------------------------------------------------------------
//! To do
void toDo();
private:
// ----------------------------------------------------------------------
// Handlers for typed from ports
// ----------------------------------------------------------------------
//! Handler implementation for typedOut
void from_typedOut_handler(
NATIVE_INT_TYPE portNum, //!< The port number
U32 u32, //!< A U32
F32 f32, //!< An F32
bool b, //!< A boolean
const TypedPortStrings::StringSize80& str1, //!< A string
const E& e, //!< An enum
const A& a, //!< An array
const S& s //!< A struct
);
//! Handler implementation for typedReturnOut
F32 from_typedReturnOut_handler(
NATIVE_INT_TYPE portNum, //!< The port number
U32 u32, //!< A U32
F32 f32, //!< An F32
bool b, //!< A boolean
const TypedReturnPortStrings::StringSize80& str2, //!< A string
const E& e, //!< An enum
const A& a, //!< An array
const S& s //!< A struct
);
private:
// ----------------------------------------------------------------------
// Helper functions
// ----------------------------------------------------------------------
//! Connect ports
void connectPorts();
//! Initialize components
void initComponents();
private:
// ----------------------------------------------------------------------
// Member variables
// ----------------------------------------------------------------------
//! The component under test
PassiveEvents component;
};
#endif