13#include "test/ut/Tester.hpp"
19void Tester ::connectPorts() {
22 this->connect_to_arrayArgsGuarded(i, this->component.get_arrayArgsGuarded_InputPort(i));
27 this->connect_to_arrayArgsSync(i, this->component.get_arrayArgsSync_InputPort(i));
31 this->connect_to_arrayReturnGuarded(0, this->component.get_arrayReturnGuarded_InputPort(0));
34 this->connect_to_arrayReturnSync(0, this->component.get_arrayReturnSync_InputPort(0));
37 this->connect_to_cmdIn(0, this->component.get_cmdIn_InputPort(0));
41 this->connect_to_enumArgsGuarded(i, this->component.get_enumArgsGuarded_InputPort(i));
46 this->connect_to_enumArgsSync(i, this->component.get_enumArgsSync_InputPort(i));
50 this->connect_to_enumReturnGuarded(0, this->component.get_enumReturnGuarded_InputPort(0));
53 this->connect_to_enumReturnSync(0, this->component.get_enumReturnSync_InputPort(0));
57 this->connect_to_noArgsGuarded(i, this->component.get_noArgsGuarded_InputPort(i));
61 this->connect_to_noArgsReturnGuarded(0, this->component.get_noArgsReturnGuarded_InputPort(0));
64 this->connect_to_noArgsReturnSync(0, this->component.get_noArgsReturnSync_InputPort(0));
68 this->connect_to_noArgsSync(i, this->component.get_noArgsSync_InputPort(i));
73 this->connect_to_primitiveArgsGuarded(i, this->component.get_primitiveArgsGuarded_InputPort(i));
78 this->connect_to_primitiveArgsSync(i, this->component.get_primitiveArgsSync_InputPort(i));
82 this->connect_to_primitiveReturnGuarded(0, this->component.get_primitiveReturnGuarded_InputPort(0));
85 this->connect_to_primitiveReturnSync(0, this->component.get_primitiveReturnSync_InputPort(0));
89 this->connect_to_stringArgsGuarded(i, this->component.get_stringArgsGuarded_InputPort(i));
94 this->connect_to_stringArgsSync(i, this->component.get_stringArgsSync_InputPort(i));
99 this->connect_to_structArgsGuarded(i, this->component.get_structArgsGuarded_InputPort(i));
104 this->connect_to_structArgsSync(i, this->component.get_structArgsSync_InputPort(i));
108 this->connect_to_structReturnGuarded(0, this->component.get_structReturnGuarded_InputPort(0));
111 this->connect_to_structReturnSync(0, this->component.get_structReturnSync_InputPort(0));
114 this->component.set_arrayArgsOut_OutputPort(TypedPortIndex::TYPED,
115 this->get_from_arrayArgsOut(TypedPortIndex::TYPED));
118 this->component.set_arrayReturnOut_OutputPort(0, this->get_from_arrayReturnOut(0));
121 this->connect_to_cmdOut(0, this->component.get_cmdIn_InputPort(0));
124 this->component.set_cmdRegOut_OutputPort(0, this->get_from_cmdRegOut(0));
127 this->component.set_cmdResponseOut_OutputPort(0, this->get_from_cmdResponseOut(0));
130 this->component.set_enumArgsOut_OutputPort(TypedPortIndex::TYPED,
131 this->get_from_enumArgsOut(TypedPortIndex::TYPED));
134 this->component.set_enumReturnOut_OutputPort(0, this->get_from_enumReturnOut(0));
137 this->component.set_eventOut_OutputPort(0, this->get_from_eventOut(0));
140 this->component.set_noArgsOut_OutputPort(TypedPortIndex::TYPED, this->get_from_noArgsOut(TypedPortIndex::TYPED));
143 this->component.set_noArgsReturnOut_OutputPort(0, this->get_from_noArgsReturnOut(0));
146 this->component.set_primitiveArgsOut_OutputPort(TypedPortIndex::TYPED,
147 this->get_from_primitiveArgsOut(TypedPortIndex::TYPED));
150 this->component.set_primitiveReturnOut_OutputPort(0, this->get_from_primitiveReturnOut(0));
153 this->component.set_stringArgsOut_OutputPort(TypedPortIndex::TYPED,
154 this->get_from_stringArgsOut(TypedPortIndex::TYPED));
157 this->component.set_structArgsOut_OutputPort(TypedPortIndex::TYPED,
158 this->get_from_structArgsOut(TypedPortIndex::TYPED));
161 this->component.set_structReturnOut_OutputPort(0, this->get_from_structReturnOut(0));
164 this->component.set_textEventOut_OutputPort(0, this->get_from_textEventOut(0));
167 this->component.set_tlmOut_OutputPort(0, this->get_from_tlmOut(0));
174 this->component.set_prmGetOut_OutputPort(0, this->get_from_prmGetIn(0));
180 this->component.set_noArgsOut_OutputPort(TypedPortIndex::SERIAL,
181 this->get_from_serialOut(SerialPortIndex::NO_ARGS));
183 this->component.set_primitiveArgsOut_OutputPort(TypedPortIndex::SERIAL,
184 this->get_from_serialOut(SerialPortIndex::PRIMITIVE));
186 this->component.set_stringArgsOut_OutputPort(TypedPortIndex::SERIAL,
187 this->get_from_serialOut(SerialPortIndex::STRING));
189 this->component.set_enumArgsOut_OutputPort(TypedPortIndex::SERIAL, this->get_from_serialOut(SerialPortIndex::ENUM));
191 this->component.set_arrayArgsOut_OutputPort(TypedPortIndex::SERIAL,
192 this->get_from_serialOut(SerialPortIndex::ARRAY));
194 this->component.set_structArgsOut_OutputPort(TypedPortIndex::SERIAL,
195 this->get_from_serialOut(SerialPortIndex::STRUCT));
197 this->component.set_serialOut_OutputPort(SerialPortIndex::NO_ARGS,
198 this->get_from_noArgsOut(TypedPortIndex::SERIAL));
200 this->component.set_serialOut_OutputPort(SerialPortIndex::PRIMITIVE,
201 this->get_from_primitiveArgsOut(TypedPortIndex::SERIAL));
203 this->component.set_serialOut_OutputPort(SerialPortIndex::STRING,
204 this->get_from_stringArgsOut(TypedPortIndex::SERIAL));
206 this->component.set_serialOut_OutputPort(SerialPortIndex::ENUM, this->get_from_enumArgsOut(TypedPortIndex::SERIAL));
208 this->component.set_serialOut_OutputPort(SerialPortIndex::ARRAY,
209 this->get_from_arrayArgsOut(TypedPortIndex::SERIAL));
211 this->component.set_serialOut_OutputPort(SerialPortIndex::STRUCT,
212 this->get_from_structArgsOut(TypedPortIndex::SERIAL));
220 this->connect_to_serialGuarded(i, this->component.get_serialGuarded_InputPort(i));
225 this->connect_to_serialSync(i, this->component.get_serialSync_InputPort(i));
229void Tester ::connectPrmSetIn() {
231 this->component.set_prmSetOut_OutputPort(0, this->get_from_prmSetIn(0));
234void Tester ::connectTimeGetOut() {
236 this->component.set_timeGetOut_OutputPort(0, this->get_from_timeGetOut(0));
239void Tester ::connectSpecialPortsSerial() {
241 this->component.set_cmdResponseOut_OutputPort(0, this->get_from_serialOut(0));
244 this->component.set_cmdRegOut_OutputPort(0, this->get_from_serialOut(0));
247 this->component.set_eventOut_OutputPort(0, this->get_from_serialOut(0));
250 this->component.set_textEventOut_OutputPort(0, this->get_from_serialOut(0));
253 this->component.set_tlmOut_OutputPort(0, this->get_from_serialOut(0));
256 this->component.set_prmSetOut_OutputPort(0, this->get_from_serialOut(0));
259 this->component.set_timeGetOut_OutputPort(0, this->get_from_serialOut(0));
263 this->prmValid = valid;
266void Tester ::checkSerializeStatusSuccess() {
270void Tester ::checkSerializeStatusBufferEmpty() {
PlatformIntType NATIVE_INT_TYPE
Enum representing parameter validity.
@ FW_DESERIALIZE_BUFFER_EMPTY
Deserialization buffer was empty when trying to read more data.
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.