#pragma once #include #include #include #include class GpioHandleInterface { public: virtual ~GpioHandleInterface() = default; virtual std::unique_ptr build(const std::string& gpiochip, const std::string& line) const = 0; }; class GpioHandleMock : public GpioHandleInterface { public: virtual ~GpioHandleMock() = default; MOCK_CONST_METHOD2(build, std::unique_ptr( const std::string&, const std::string&)); }; // Set this before each test that hits a call to getEnv(). extern GpioHandleInterface* gpioIntf;