Skip to content

Commit

Permalink
🤡 (mocks): Mock CoreTouchSensor
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Sep 5, 2022
1 parent 961b0e8 commit 14245cc
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/unit/mocks/mocks/leka/CoreTouchSensor.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Leka - LekaOS
// Copyright 2022 APF France handicap
// SPDX-License-Identifier: Apache-2.0

#pragma once

#include "gmock/gmock.h"
#include "interface/drivers/TouchSensor.h"

namespace leka::mock {

class CoreTouchSensor : public interface::TouchSensor
{
public:
MOCK_METHOD(void, init, (), (override));
MOCK_METHOD(bool, read, (), (override));
MOCK_METHOD(void, reset, (), (override));
MOCK_METHOD(void, setSensitivity, (uint16_t), (override));
};

} // namespace leka::mock

0 comments on commit 14245cc

Please sign in to comment.