Promote getPath() to PMBusBase
Promote the getPath() method from the PMBus class to the PMBusBase
parent class. This allows the method to be called from automated tests
using mock subclasses of PMBusBase.
Change-Id: I01dc6c314294e0de8919f78c79cbdc395020728f
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
diff --git a/phosphor-power-sequencer/test/mock_pmbus.hpp b/phosphor-power-sequencer/test/mock_pmbus.hpp
index 587e08b..6337dbf 100644
--- a/phosphor-power-sequencer/test/mock_pmbus.hpp
+++ b/phosphor-power-sequencer/test/mock_pmbus.hpp
@@ -17,11 +17,15 @@
#include "pmbus.hpp"
+#include <filesystem>
+
#include <gmock/gmock.h>
namespace phosphor::pmbus
{
+namespace fs = std::filesystem;
+
/**
* @class MockPMBus
*
@@ -53,6 +57,7 @@
MOCK_METHOD(const fs::path&, path, (), (const, override));
MOCK_METHOD(std::string, insertPageNum,
(const std::string& templateName, size_t page), (override));
+ MOCK_METHOD(fs::path, getPath, (Type type), (override));
};
} // namespace phosphor::pmbus