blob: 2e3d39715d7d1035ebac1cfe5897a3d36175c748 [file] [log] [blame]
#include "gpio_mock.hpp"
#include <memory>
#include <string>
// Set this before each test that hits a call to getEnv().
GpioHandleInterface* gpioIntf;
namespace gpio
{
std::unique_ptr<gpioplus::HandleInterface> BuildGpioHandle(
const std::string& gpiochip, const std::string& line)
{
return (gpioIntf) ? gpioIntf->build(gpiochip, line) : nullptr;
}
} // namespace gpio