Test cases for VPD-Manager read functionalities
Implementation of test cases for read functionalities provided
by VPD-Manager app.
Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
Change-Id: I83ad6757934a4c28ae26eb11f0b1f380e2c82aa8
diff --git a/utilInterface.hpp b/utilInterface.hpp
new file mode 100644
index 0000000..4f6009b
--- /dev/null
+++ b/utilInterface.hpp
@@ -0,0 +1,44 @@
+#pragma once
+#include "utils.hpp"
+
+#include <string>
+
+namespace openpower
+{
+namespace vpd
+{
+namespace utils
+{
+namespace interface
+{
+
+class UtilityInterface
+{
+ public:
+ virtual ~UtilityInterface()
+ {
+ }
+
+ virtual std::string readBusProperty(const std::string& obj,
+ const std::string& inf,
+ const std::string& prop) = 0;
+};
+
+class utility : public UtilityInterface
+{
+ public:
+ virtual ~utility()
+ {
+ }
+
+ std::string readBusProperty(const std::string& obj, const std::string& inf,
+ const std::string& prop) override
+ {
+ return readBusProperty(obj, inf, prop);
+ }
+};
+
+} // namespace interface
+} // namespace utils
+} // namespace vpd
+} // namespace openpower