bmc: add update mechanism interface
Add mechanism definition for an update interface. Does not provide an
implementation.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I8d8f04538524ab42de19843844fef3eec6bbd140
diff --git a/test/bmc_update_mock.hpp b/test/bmc_update_mock.hpp
new file mode 100644
index 0000000..5331b50
--- /dev/null
+++ b/test/bmc_update_mock.hpp
@@ -0,0 +1,22 @@
+#pragma once
+
+#include "status.hpp"
+#include "update.hpp"
+
+#include <memory>
+#include <vector>
+
+#include <gtest/gtest.h>
+
+namespace ipmi_flash
+{
+
+class UpdateMock : public UpdateInterface
+{
+ public:
+ MOCK_METHOD0(triggerUpdate, bool());
+ MOCK_METHOD0(abortUpdate, void());
+ MOCK_METHOD0(status, UpdateStatus());
+};
+
+} // namespace ipmi_flash