summaryrefslogtreecommitdiffstats
path: root/test/bmc_update_mock.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/bmc_update_mock.hpp')
-rw-r--r--test/bmc_update_mock.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/bmc_update_mock.hpp b/test/bmc_update_mock.hpp
index 5331b50..3db9221 100644
--- a/test/bmc_update_mock.hpp
+++ b/test/bmc_update_mock.hpp
@@ -6,7 +6,7 @@
#include <memory>
#include <vector>
-#include <gtest/gtest.h>
+#include <gmock/gmock.h>
namespace ipmi_flash
{
@@ -19,4 +19,9 @@ class UpdateMock : public UpdateInterface
MOCK_METHOD0(status, UpdateStatus());
};
+std::unique_ptr<UpdateInterface> CreateUpdateMock()
+{
+ return std::make_unique<UpdateMock>();
+}
+
} // namespace ipmi_flash
OpenPOWER on IntegriCloud