16 #ifndef ALEXA_CLIENT_SDK_AVS_SHARED_PRESENTATIONORCHESTRATOR_VISUALTIMEOUTMANAGER_TEST_MOCKTIMERFACTORY_H_ 17 #define ALEXA_CLIENT_SDK_AVS_SHARED_PRESENTATIONORCHESTRATOR_VISUALTIMEOUTMANAGER_TEST_MOCKTIMERFACTORY_H_ 26 namespace visualTimeoutManager {
38 std::chrono::nanoseconds delay,
39 std::chrono::nanoseconds period,
42 std::function<
void()> task)
override {
66 bool dispatched = (step >=
m_delay);
99 std::unique_ptr<alexaClientSDK::avsCommon::sdkInterfaces::timing::TimerDelegateInterface>
getTimerDelegate()
105 std::unique_ptr<alexaClientSDK::avsCommon::sdkInterfaces::timing::TimerDelegateInterface> ptr{m_timer};
130 #endif // ALEXA_CLIENT_SDK_AVS_SHARED_PRESENTATIONORCHESTRATOR_VISUALTIMEOUTMANAGER_TEST_MOCKTIMERFACTORY_H_ Definition: TimerDelegateInterface.h:31
bool supportsLowPowerMode() override
Definition: MockTimerFactory.h:96
std::unique_ptr< alexaClientSDK::avsCommon::sdkInterfaces::timing::TimerDelegateInterface > getTimerDelegate() override
Definition: MockTimerFactory.h:99
Definition: AmdMetricWrapperTest.cpp:24
A factory for creating TimerDelegateInterface.
Definition: TimerDelegateFactoryInterface.h:29
bool activate() override
Definition: MockTimerFactory.h:49
bool m_active
Definition: MockTimerFactory.h:86
bool warpForward(std::chrono::nanoseconds step)
Definition: MockTimerFactory.h:65
Definition: MockTimerFactory.h:92
void stop() override
Definition: MockTimerFactory.h:46
std::function< void()> m_task
Definition: MockTimerFactory.h:84
Definition: MockTimerFactory.h:33
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
std::chrono::nanoseconds m_delay
Definition: MockTimerFactory.h:85
bool isActive() const override
Definition: MockTimerFactory.h:54
PeriodType
Specifies different ways to apply the period of a recurring task.
Definition: TimerDelegateInterface.h:48
WarpTimer * getTimer()
Definition: MockTimerFactory.h:118
std::chrono::nanoseconds getDelay()
Definition: MockTimerFactory.h:79
void start(std::chrono::nanoseconds delay, std::chrono::nanoseconds period, PeriodType periodType, size_t maxCount, std::function< void()> task) override
Definition: MockTimerFactory.h:37