Home
last modified time | relevance | path

Searched refs:psuPath (Results 1 – 3 of 3) sorted by relevance

/openbmc/phosphor-psu-code-mgmt/test/
H A Dtest_item_updater.cpp55 void onPsuInventoryChanged(const std::string& psuPath, in onPsuInventoryChanged() argument
58 itemUpdater->onPsuInventoryChanged(psuPath, properties); in onPsuInventoryChanged()
83 constexpr auto psuPath = "/com/example/inventory/psu0"; in TEST_F() local
88 .WillOnce(Return(std::vector<std::string>({psuPath}))); in TEST_F()
89 EXPECT_CALL(mockedUtils, getService(_, StrEq(psuPath), _)) in TEST_F()
91 EXPECT_CALL(mockedUtils, getPropertyImpl(_, StrEq(service), StrEq(psuPath), in TEST_F()
107 constexpr auto psuPath = "/com/example/inventory/psu0"; in TEST_F() local
112 .WillOnce(Return(std::vector<std::string>({psuPath}))); in TEST_F()
113 EXPECT_CALL(mockedUtils, getService(_, StrEq(psuPath), _)) in TEST_F()
115 EXPECT_CALL(mockedUtils, getVersion(StrEq(psuPath))) in TEST_F()
[all …]
/openbmc/phosphor-psu-code-mgmt/src/
H A Ditem_updater.cpp323 void ItemUpdater::addPsuToStatusMap(const std::string& psuPath) in addPsuToStatusMap() argument
325 if (!psuStatusMap.contains(psuPath)) in addPsuToStatusMap()
327 psuStatusMap[psuPath] = {false, ""}; in addPsuToStatusMap()
332 bus, MatchRules::propertiesChanged(psuPath, ITEM_IFACE), in addPsuToStatusMap()
338 void ItemUpdater::handlePSUPresenceChanged(const std::string& psuPath) in handlePSUPresenceChanged() argument
340 if (psuStatusMap.contains(psuPath)) in handlePSUPresenceChanged()
342 if (psuStatusMap[psuPath].present) in handlePSUPresenceChanged()
345 psuStatusMap[psuPath].model = utils::getModel(psuPath); in handlePSUPresenceChanged()
346 auto version = utils::getVersion(psuPath); in handlePSUPresenceChanged()
347 if (!version.empty() && !psuPathActivationMap.contains(psuPath)) in handlePSUPresenceChanged()
[all …]
H A Ditem_updater.hpp151 void onPsuInventoryChanged(const std::string& psuPath,
189 void addPsuToStatusMap(const std::string& psuPath);
195 void handlePSUPresenceChanged(const std::string& psuPath);