12#ifndef RTCTK_COMPONENTFRAMEWORK_MOCKCOMPONENTMETRICS_HPP
13#define RTCTK_COMPONENTFRAMEWORK_MOCKCOMPONENTMETRICS_HPP
15#include <gmock/gmock.h>
21struct MockComponentMetrics : ComponentMetricsIf {
typename CounterTypes::CounterVariant CounterVariant
std::variant of pointers to each supported type in CounterTypes.
Definition componentMetricsIf.hpp:142
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:46
Header file for ComponentMetricsIf.
Definition commandReplier.cpp:22
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))