Home
last modified time | relevance | path

Searched refs:dataIface (Results 1 – 25 of 30) sorted by relevance

12

/openbmc/phosphor-logging/test/openpower-pels/
H A Dservice_indicators_test.cpp19 MockDataInterface dataIface; in TEST() local
20 service_indicators::LightPath lightPath{dataIface}; in TEST()
47 MockDataInterface dataIface; in TEST() local
48 service_indicators::LightPath lightPath{dataIface}; in TEST()
78 MockDataInterface dataIface; in TEST() local
79 service_indicators::LightPath lightPath{dataIface}; in TEST()
129 MockDataInterface dataIface; in TEST() local
130 service_indicators::LightPath lightPath{dataIface}; in TEST()
192 MockDataInterface dataIface; in TEST() local
193 service_indicators::LightPath lightPath{dataIface}; in TEST()
[all …]
H A Dhost_notifier_test.cpp36 ON_CALL(dataIface, getHostPELEnablement).WillByDefault(Return(true)); in HostNotifierTest()
39 std::make_unique<NiceMock<MockHostInterface>>(event, dataIface); in HostNotifierTest()
59 NiceMock<MockDataInterface> dataIface; member in HostNotifierTest
117 dataIface.subscribeToHostStateChange("test", func); in TEST_F()
120 dataIface.changeHostState(true); in TEST_F()
126 dataIface.changeHostState(true); in TEST_F()
130 dataIface.changeHostState(false); in TEST_F()
135 dataIface.unsubscribeFromHostStateChange("test"); in TEST_F()
139 dataIface.changeHostState(true); in TEST_F()
147 HostNotifier notifier{repo, dataIface, std::move(hostIface)}; in TEST_F()
[all …]
H A Dsrc_test.cpp195 NiceMock<MockDataInterface> dataIface; in TEST_F() local
197 EXPECT_CALL(dataIface, getMotherboardCCIN).WillOnce(Return("ABCD")); in TEST_F()
199 SRC src{entry, ad, dataIface}; in TEST_F()
256 NiceMock<MockDataInterface> dataIface; in TEST_F() local
260 EXPECT_CALL(dataIface, getMotherboardCCIN) in TEST_F()
267 SRC src{entry, ad, dataIface}; in TEST_F()
274 SRC src{entry, ad, dataIface}; in TEST_F()
281 SRC src{entry, ad, dataIface}; in TEST_F()
301 NiceMock<MockDataInterface> dataIface; in TEST_F() local
303 SRC src{*entry, ad, dataIface}; in TEST_F()
[all …]
H A Dextended_user_header_test.cpp126 MockDataInterface dataIface; in TEST() local
128 EXPECT_CALL(dataIface, getMachineTypeModel()) in TEST()
131 EXPECT_CALL(dataIface, getMachineSerialNumber()) in TEST()
134 EXPECT_CALL(dataIface, getServerFWVersion()) in TEST()
137 EXPECT_CALL(dataIface, getBMCFWVersion()) in TEST()
140 ExtendedUserHeader euh{dataIface, entry, src}; in TEST()
165 MockDataInterface dataIface; in TEST() local
169 EXPECT_CALL(dataIface, getMachineTypeModel()) in TEST()
172 EXPECT_CALL(dataIface, getMachineSerialNumber()) in TEST()
175 EXPECT_CALL(dataIface, getServerFWVersion()) in TEST()
[all …]
H A Dfailing_mtms_test.cpp21 MockDataInterface dataIface; in TEST() local
23 EXPECT_CALL(dataIface, getMachineTypeModel()) in TEST()
26 EXPECT_CALL(dataIface, getMachineSerialNumber()) in TEST()
29 FailingMTMS fm{dataIface}; in TEST()
44 MockDataInterface dataIface; in TEST() local
46 EXPECT_CALL(dataIface, getMachineTypeModel()) in TEST()
49 EXPECT_CALL(dataIface, getMachineSerialNumber()) in TEST()
52 FailingMTMS fm{dataIface}; in TEST()
60 MockDataInterface dataIface; in TEST() local
62 EXPECT_CALL(dataIface, getMachineTypeModel()).WillOnce(Return("A")); in TEST()
[all …]
H A Duser_header_test.cpp102 MockDataInterface dataIface; in TEST() local
106 dataIface); in TEST()
131 dataIface); in TEST()
146 MockDataInterface dataIface; in TEST() local
151 EXPECT_CALL(dataIface, getSystemNames) in TEST()
158 dataIface); in TEST()
165 dataIface); in TEST()
172 dataIface); in TEST()
193 MockDataInterface dataIface; in TEST() local
197 dataIface); in TEST()
[all …]
H A Dpel_test.cpp155 NiceMock<MockDataInterface> dataIface; in TEST_F() local
160 ad, ffdc, dataIface, journal}; in TEST_F()
206 dataIface, journal}; in TEST_F()
230 NiceMock<MockDataInterface> dataIface; in TEST_F() local
234 ad, ffdc, dataIface, journal}; in TEST_F()
388 MockDataInterface dataIface; in TEST_F() local
390 EXPECT_CALL(dataIface, getBMCFWVersionID()).WillOnce(Return("ABCD1234")); in TEST_F()
391 EXPECT_CALL(dataIface, getBMCState()).WillOnce(Return("State.Ready")); in TEST_F()
392 EXPECT_CALL(dataIface, getChassisState()).WillOnce(Return("State.On")); in TEST_F()
393 EXPECT_CALL(dataIface, getHostState()).WillOnce(Return("State.Off")); in TEST_F()
[all …]
H A Dpel_manager_test.cpp128 std::unique_ptr<DataInterfaceBase> dataIface = in TEST_F() local
133 Manager manager{logManager, std::move(dataIface), in TEST_F()
168 std::unique_ptr<DataInterfaceBase> dataIface = in TEST_F() local
173 Manager manager{logManager, std::move(dataIface), in TEST_F()
267 std::unique_ptr<DataInterfaceBase> dataIface = in TEST_F() local
272 Manager manager{logManager, std::move(dataIface), in TEST_F()
371 std::unique_ptr<DataInterfaceBase> dataIface = in TEST_F() local
376 Manager manager{logManager, std::move(dataIface), in TEST_F()
592 std::unique_ptr<DataInterfaceBase> dataIface = in TEST_F() local
597 Manager manager{logManager, std::move(dataIface), in TEST_F()
[all …]
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Dsrc.hpp102 const DataInterfaceBase& dataIface) : in SRC() argument
103 SRC(regEntry, additionalData, nlohmann::json{}, dataIface) in SRC()
120 const nlohmann::json& jsonCallouts, const DataInterfaceBase& dataIface);
407 void setMotherboardCCIN(const DataInterfaceBase& dataIface);
414 void setProgressCode(const DataInterfaceBase& dataIface);
462 const DataInterfaceBase& dataIface);
477 const DataInterfaceBase& dataIface,
489 const DataInterfaceBase& dataIface);
506 const DataInterfaceBase& dataIface,
524 const DataInterfaceBase& dataIface,
[all …]
H A Ddbus_watcher.hpp102 const DataIface& dataIface, PropertySetFunc func) : in PropertyWatcher() argument
118 read(dataIface, service); in PropertyWatcher()
145 const std::string& propertyName, const DataIface& dataIface, in PropertyWatcher() argument
147 PropertyWatcher(bus, path, interface, propertyName, "", dataIface, func) in PropertyWatcher()
160 void read(const DataIface& dataIface, std::string service) in read() argument
164 service = dataIface.getService(_path, _interface); in read()
170 dataIface.getProperty(service, _path, _interface, _name, value); in read()
279 const std::string& interface, const DataIface& dataIface, in InterfaceWatcher() argument
296 read(dataIface); in InterfaceWatcher()
310 void read(const DataIface& dataIface) in read() argument
[all …]
H A Dpel.cpp53 const DataInterfaceBase& dataIface, const JournalBase& journal) in PEL() argument
91 dataIface); in PEL()
108 std::make_unique<SRC>(regEntry, additionalData, callouts, dataIface); in PEL()
111 addAdDetailsForDIMMsCallout(src, dataIface, adSysInfoData, debugData); in PEL()
119 auto euh = std::make_unique<ExtendedUserHeader>(dataIface, regEntry, *src); in PEL()
124 auto mtms = std::make_unique<FailingMTMS>(dataIface); in PEL()
127 auto ud = util::makeSysInfoUserDataSection(additionalData, dataIface, true, in PEL()
171 openpower::pels::phal::createServiceActions(callouts, dataIface, plid()); in PEL()
545 const DataInterfaceBase& dataIface) in updateSysInfoInExtendedUserDataSection() argument
577 dataIface, false); in updateSysInfoInExtendedUserDataSection()
[all …]
H A Dservice_indicators.hpp29 explicit Policy(const DataInterfaceBase& dataIface) : _dataIface(dataIface) in Policy() argument
71 explicit LightPath(const DataInterfaceBase& dataIface) : Policy(dataIface) in LightPath() argument
190 std::unique_ptr<Policy> getPolicy(const DataInterfaceBase& dataIface);
H A Dsrc.cpp302 const nlohmann::json& jsonCallouts, const DataInterfaceBase& dataIface) in SRC() argument
333 setProgressCode(dataIface); in SRC()
336 setMotherboardCCIN(dataIface); in SRC()
371 addCallouts(regEntry, additionalData, jsonCallouts, dataIface); in SRC()
416 void SRC::setMotherboardCCIN(const DataInterfaceBase& dataIface) in setMotherboardCCIN() argument
419 auto ccinString = dataIface.getMotherboardCCIN(); in setMotherboardCCIN()
820 const DataInterfaceBase& dataIface) in addCallouts() argument
823 getRegistryCallouts(regEntry, additionalData, dataIface); in addCallouts()
849 addInventoryCallout(*item, calloutPriority, std::nullopt, dataIface); in addCallouts()
852 addDevicePathCallouts(additionalData, dataIface); in addCallouts()
[all …]
H A Dentry_points.cpp32 std::unique_ptr<DataInterfaceBase> dataIface = in DISABLE_LOG_ENTRY_CAPS() local
39 logManager.getBus().get_event(), *(dataIface.get())); in DISABLE_LOG_ENTRY_CAPS()
41 manager = std::make_unique<Manager>(logManager, std::move(dataIface), in DISABLE_LOG_ENTRY_CAPS()
45 manager = std::make_unique<Manager>(logManager, std::move(dataIface), in DISABLE_LOG_ENTRY_CAPS()
H A Dphal_service_actions.cpp66 const DataInterfaceBase& dataIface) in createGuardRecords() argument
125 dataIface.createGuardRecord(entityPath, eGuardType, plid); in createGuardRecords()
202 const DataInterfaceBase& dataIface, uint32_t plid) in createServiceActions() argument
205 createGuardRecords(jsonCallouts, plid, dataIface); in createServiceActions()
H A Dextended_user_header.cpp37 ExtendedUserHeader::ExtendedUserHeader(const DataInterfaceBase& dataIface, in ExtendedUserHeader() argument
40 _mtms(dataIface.getMachineTypeModel(), dataIface.getMachineSerialNumber()) in ExtendedUserHeader()
48 auto version = dataIface.getServerFWVersion(); in ExtendedUserHeader()
57 version = dataIface.getBMCFWVersion(); in ExtendedUserHeader()
H A Dfailing_mtms.cpp21 FailingMTMS::FailingMTMS(const DataInterfaceBase& dataIface) : in FailingMTMS() argument
22 _mtms(dataIface.getMachineTypeModel(), dataIface.getMachineSerialNumber()) in FailingMTMS()
H A Duser_header.cpp37 const DataInterfaceBase& dataIface) in UserHeader() argument
98 sev = getSeverity(entry.mfgSeverity.value(), dataIface); in UserHeader()
109 bool mfgProp = dataIface.getQuiesceOnError(); in UserHeader()
138 auto sev = getSeverity(entry.severity.value(), dataIface); in UserHeader()
284 const DataInterfaceBase& dataIface) const in getSeverity()
296 systemNames = dataIface.getSystemNames(); in getSeverity()
H A Dpel.hpp115 const DataInterfaceBase& dataIface, const JournalBase& journal);
306 const DataInterfaceBase& dataIface);
430 const std::unique_ptr<SRC>& src, const DataInterfaceBase& dataIface,
490 const AdditionalData& ad, const DataInterfaceBase& dataIface,
H A Dpldm_interface.hpp43 PLDMInterface(sd_event* event, DataInterfaceBase& dataIface) : in PLDMInterface() argument
44 HostInterface(event, dataIface), in PLDMInterface()
H A Dhost_interface.hpp63 HostInterface(sd_event* event, DataInterfaceBase& dataIface) : in HostInterface() argument
64 _event(event), _dataIface(dataIface) in HostInterface()
H A Duser_header.hpp53 const DataInterfaceBase& dataIface);
257 const DataInterfaceBase& dataIface) const;
H A Dmanager.hpp51 std::unique_ptr<DataInterfaceBase> dataIface, in Manager() argument
58 _dataIface(std::move(dataIface)), _journal(std::move(journal)) in Manager()
85 std::unique_ptr<DataInterfaceBase> dataIface, in Manager() argument
89 Manager(logManager, std::move(dataIface), std::move(creatorFunc), in Manager()
H A Dphal_service_actions.hpp23 const DataInterfaceBase& dataIface, uint32_t plid);
H A Dservice_indicators.cpp16 std::unique_ptr<Policy> getPolicy(const DataInterfaceBase& dataIface) in getPolicy() argument
19 return std::make_unique<LightPath>(dataIface); in getPolicy()

12