Searched refs:MetricListener (Results 1 – 8 of 8) sorted by relevance
25 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()
27 void registerForUpdates(interfaces::MetricListener& listener) override;28 void unregisterFromUpdates(interfaces::MetricListener& listener) override;43 std::vector<std::reference_wrapper<interfaces::MetricListener>> listeners;
30 class Report : public interfaces::Report, public interfaces::MetricListener
6 class MetricListener class9 virtual ~MetricListener() = default;
25 virtual void registerForUpdates(interfaces::MetricListener& listener) = 0;27 unregisterFromUpdates(interfaces::MetricListener& listener) = 0;
28 MOCK_METHOD(void, registerForUpdates, (interfaces::MetricListener&),30 MOCK_METHOD(void, unregisterFromUpdates, (interfaces::MetricListener&),
7 class MetricListenerMock : public interfaces::MetricListener
1148 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()