19#ifndef MOCKMCP2515CONTROLLER_HPP
20#define MOCKMCP2515CONTROLLER_HPP
24#include <gmock/gmock.h>
Definition of the IMCP2515Controller class.
Interface for the MCP2515 CAN controller. QObject.
virtual void stopReading()=0
virtual bool isStopReadingFlagSet() const =0
virtual void processReading()=0
Class to emulate the behavior of the MCP2515 controller.
MOCK_METHOD(bool, isStopReadingFlagSet,(),(const, override))
Mocked method to check if the stop reading flag is set.
MOCK_METHOD(void, stopReading,(),(override))
Mocked method to stop the reading of the MCP2515 controller.
void rpmUpdated(int newRpm)
Rotation per minute updated signal.
MOCK_METHOD(void, processReading,(),(override))
Mocked method to process the reading of the MCP2515 controller.
MOCK_METHOD(bool, init,(),(override))
Mocked method to initialize the MCP2515 controller.
void speedUpdated(float newSpeed)
Speed updated signal.