fsfw/unittests/mocks/PusDistributorMock.cpp

13 lines
423 B
C++
Raw Normal View History

2022-07-26 18:46:28 +02:00
#include "PusDistributorMock.h"
PusDistributorMock::PusDistributorMock() : SystemObject(objects::NO_OBJECT, false) {}
PusDistributorMock::PusDistributorMock(object_id_t registeredId)
: SystemObject(registeredId, true) {}
2022-08-01 14:23:52 +02:00
ReturnValue_t PusDistributorMock::registerService(const AcceptsTelecommandsIF& service) {
2022-07-26 18:46:28 +02:00
registerCallCount++;
2022-08-01 14:23:52 +02:00
registeredServies.push_back(&service);
2022-07-26 18:46:28 +02:00
return HasReturnvaluesIF::RETURN_OK;
}