pldmd: Migrate instance ID allocation to pldm::InstanceIdDb
This removes use of `pldm::dbus_api::Requester` from around the
code-base. This makes progress towards removing the DBus API entirely
once all its consumers are converted to the libpldm instance ID APIs.
There was never a good reason for the code using the class to have
knowledge that it was related to DBus anyway, so this is, in-effect, a
double clean up improving separation of concerns.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I2d9397cae1b3c8c251c32e36ca520aad9c9b8cf6
diff --git a/fw-update/test/inventory_manager_test.cpp b/fw-update/test/inventory_manager_test.cpp
index 1f7d142..3876563 100644
--- a/fw-update/test/inventory_manager_test.cpp
+++ b/fw-update/test/inventory_manager_test.cpp
@@ -16,18 +16,15 @@
protected:
InventoryManagerTest() :
event(sdeventplus::Event::get_default()), instanceIdDb(),
- dbusImplRequester(pldm::utils::DBusHandler::getBus(),
- "/xyz/openbmc_project/pldm", instanceIdDb),
- reqHandler(fd, event, dbusImplRequester, false, 90000, seconds(1), 2,
+ reqHandler(fd, event, instanceIdDb, false, 90000, seconds(1), 2,
milliseconds(100)),
- inventoryManager(reqHandler, dbusImplRequester, outDescriptorMap,
+ inventoryManager(reqHandler, instanceIdDb, outDescriptorMap,
outComponentInfoMap)
{}
int fd = -1;
sdeventplus::Event event;
TestInstanceIdDb instanceIdDb;
- pldm::dbus_api::Requester dbusImplRequester;
requester::Handler<requester::Request> reqHandler;
InventoryManager inventoryManager;
DescriptorMap outDescriptorMap{};