Enhance regulators Rule class
Enhance the regulators Rule class by adding a vector of actions and an
execute() method.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: I09300b7345110fbce8b3a794c8f77a8d234ff538
diff --git a/phosphor-regulators/test/id_map_tests.cpp b/phosphor-regulators/test/id_map_tests.cpp
index 5d47d7d..fae5fff 100644
--- a/phosphor-regulators/test/id_map_tests.cpp
+++ b/phosphor-regulators/test/id_map_tests.cpp
@@ -92,7 +92,7 @@
// Create rule
std::string id{"set_voltage_rule"};
- Rule rule{id};
+ Rule rule{id, std::vector<std::unique_ptr<Action>>{}};
// Verify rule is not initially in map
EXPECT_THROW(idMap.getRule(id), std::invalid_argument);
@@ -198,7 +198,7 @@
// Add a rule to the map
std::string id{"set_voltage_rule"};
- Rule rule{id};
+ Rule rule{id, std::vector<std::unique_ptr<Action>>{}};
idMap.addRule(rule);
// Test where ID found in map