13#ifndef FPP_TEST_PORT_TEST_HPP
14#define FPP_TEST_PORT_TEST_HPP
16#include "test/ut/Tester.hpp"
17#include "FppTest/component/active/TypedPortIndexEnumAc.hpp"
19#include "gtest/gtest.h"
22template <
typename PortType>
32 this->tester.testSyncPortInvoke(TypedPortIndex::TYPED, this->port);
33 this->tester.testSyncPortCheck(this->port);
37 this->tester.testGuardedPortInvoke(TypedPortIndex::TYPED, this->port);
38 this->tester.testGuardedPortCheck(this->port);
47template <
typename PortType>
57 this->tester.testAsyncPortInvoke(TypedPortIndex::TYPED, this->port);
58 this->tester.doDispatch();
59 this->tester.testAsyncPortCheck(this->port);
67template <
typename PortType>
77 this->tester.testSyncPortInvoke(TypedPortIndex::SERIAL, this->port);
78 this->tester.testSyncPortCheckSerial(this->port);
82 this->tester.testSyncPortInvokeSerial(TypedPortIndex::SERIAL, this->port);
83 this->tester.testSyncPortCheck(this->port);
87 this->tester.testGuardedPortInvoke(TypedPortIndex::SERIAL, this->port);
88 this->tester.testGuardedPortCheckSerial(this->port);
92 this->tester.testGuardedPortInvokeSerial(TypedPortIndex::SERIAL, this->port);
93 this->tester.testGuardedPortCheck(this->port);
104template <
typename PortType>
114 this->tester.testAsyncPortInvoke(TypedPortIndex::SERIAL, this->port);
115 this->tester.doDispatch();
116 this->tester.testAsyncPortCheckSerial(this->port);
120 this->tester.testAsyncPortInvokeSerial(TypedPortIndex::SERIAL, this->port);
121 this->tester.testAsyncPortCheck(this->port);
REGISTER_TYPED_TEST_SUITE_P(TypedPortTest, SyncPort, GuardedPort)
TYPED_TEST_P(TypedPortTest, SyncPort)
TYPED_TEST_SUITE_P(TypedPortTest)