xref: /openbmc/phosphor-power/tools/i2c/test/mocked_i2c_interface.cpp (revision 27ae70b8219cd292f3d8d9b3d5ff2a9ee18b1f37)
1 #include "mocked_i2c_interface.hpp"
2 
3 #include <memory>
4 
5 namespace i2c
6 {
7 
8 std::unique_ptr<I2CInterface> create(
9     uint8_t /*busId*/, uint8_t /*devAddr*/,
10     I2CInterface::InitialState /*initialState*/, int /*maxRetries*/)
11 {
12     return std::make_unique<MockedI2CInterface>();
13 }
14 
15 } // namespace i2c
16