RTC Toolkit 6.0.0
Loading...
Searching...
No Matches
mockComponentMetrics.hpp
Go to the documentation of this file.
1
11#ifndef RTCTK_COMPONENTFRAMEWORK_MOCKCOMPONENTMETRICS_HPP
12#define RTCTK_COMPONENTFRAMEWORK_MOCKCOMPONENTMETRICS_HPP
13
14#include <gmock/gmock.h>
15
17
19
21 MOCK_METHOD(void, StartMonitoring, (), (override));
22 MOCK_METHOD(void, StopMonitoring, (), (noexcept, override));
23 MOCK_METHOD(bool, IsMonitoring, (), (noexcept, override));
24 MOCK_METHOD(void, UpdateParams, (), (override));
25 MOCK_METHOD(perfc::ScopedRegistration,
28 (override));
30};
31
32} // namespace rtctk::componentFramework
33
34#endif // RTCTK_COMPONENTFRAMEWORK_MOCKCOMPONENTMETRICS_HPP
Component metrics interface.
Definition componentMetricsIf.hpp:163
typename CounterTypes::CounterVariant CounterVariant
std::variant of pointers to each supported type in CounterTypes.
Definition componentMetricsIf.hpp:220
virtual void UpdateParams()=0
Reloads parameters.
virtual void StopMonitoring() noexcept=0
Stop monitoring.
virtual bool IsMonitoring() noexcept=0
Query whether monitoring is active.
virtual void StartMonitoring()=0
Start monitoring and publishing metrics.
virtual perfc::ScopedRegistration AddCounter(CounterVariant counter, CounterMetricInfo info)=0
Add a counter to be included in component metrics, identified by its address, together with info to t...
virtual bool RemoveCounter(CounterVariant counter)=0
Remove counter from register.
Defines auxiliary information associated with each counter registered with ComponentMetricsIf.
Definition componentMetricsIf.hpp:48
Declares ComponentMetrics.
Definition commandReplier.cpp:21
Definition mockComponentMetrics.hpp:20
MOCK_METHOD(void, StopMonitoring,(),(noexcept, override))
MOCK_METHOD(bool, RemoveCounter,(ComponentMetricsIf::CounterVariant),(override))
MOCK_METHOD(bool, IsMonitoring,(),(noexcept, override))
MOCK_METHOD(void, UpdateParams,(),(override))
MOCK_METHOD(void, StartMonitoring,(),(override))
MOCK_METHOD(perfc::ScopedRegistration, AddCounter,(ComponentMetricsIf::CounterVariant, CounterMetricInfo),(override))