fsfw/unittests/mocks/PusDistributorMock.cpp

13 lines
410 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-08-16 01:08:26 +02:00
return returnvalue::OK;
2022-07-26 18:46:28 +02:00
}