Skip to content

Commit

Permalink
Add new method to mock and change mock method function.
Browse files Browse the repository at this point in the history
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
  • Loading branch information
maaikez committed Nov 13, 2024
1 parent d7c7792 commit c019173
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/lib/ocpp/v201/mocks/evse_mock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ class EvseMock : public EvseInterface {
public:
MOCK_METHOD(int32_t, get_id, (), (const));
MOCK_METHOD(uint32_t, get_number_of_connectors, (), (const));
MOCK_METHOD(bool, does_connector_exist, (ConnectorEnum connector_type));
MOCK_METHOD(std::optional<ConnectorStatusEnum>, get_connector_status,
(const uint32_t evse_id, std::optional<ConnectorEnum> connector_type));
(std::optional<ConnectorEnum> connector_type));
MOCK_METHOD(void, open_transaction,
(const std::string& transaction_id, const int32_t connector_id, const DateTime& timestamp,
const MeterValue& meter_start, const std::optional<IdToken>& id_token,
Expand Down

0 comments on commit c019173

Please sign in to comment.