Home
last modified time | relevance | path

Searched refs:MetricListener (Results 1 – 8 of 8) sorted by relevance

/openbmc/telemetry/src/
H A Dmetric.cpp25 void Metric::registerForUpdates(interfaces::MetricListener& listener) in registerForUpdates()
30 void Metric::unregisterFromUpdates(interfaces::MetricListener& listener) in unregisterFromUpdates()
34 [&listener](const interfaces::MetricListener& item) { in unregisterFromUpdates()
100 for (interfaces::MetricListener& listener : listeners) in sensorUpdated()
141 for (interfaces::MetricListener& listener : listeners) in updateReadings()
H A Dmetric.hpp27 void registerForUpdates(interfaces::MetricListener& listener) override;
28 void unregisterFromUpdates(interfaces::MetricListener& listener) override;
43 std::vector<std::reference_wrapper<interfaces::MetricListener>> listeners;
H A Dreport.hpp30 class Report : public interfaces::Report, public interfaces::MetricListener
/openbmc/telemetry/src/interfaces/
H A Dmetric_listener.hpp6 class MetricListener class
9 virtual ~MetricListener() = default;
H A Dmetric.hpp25 virtual void registerForUpdates(interfaces::MetricListener& listener) = 0;
27 unregisterFromUpdates(interfaces::MetricListener& listener) = 0;
/openbmc/telemetry/tests/src/mocks/
H A Dmetric_mock.hpp28 MOCK_METHOD(void, registerForUpdates, (interfaces::MetricListener&),
30 MOCK_METHOD(void, unregisterFromUpdates, (interfaces::MetricListener&),
H A Dmetric_listener_mock.hpp7 class MetricListenerMock : public interfaces::MetricListener
/openbmc/telemetry/tests/src/
H A Dtest_report.cpp1148 std::vector<const interfaces::MetricListener*> args; in TEST_F()
1152 .WillOnce(Invoke([&args](const interfaces::MetricListener& report) { in TEST_F()
1176 static_cast<interfaces::MetricListener&>(*sut.get())))); in TEST_F()