AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
ProgressTimerTest.cpp File Reference
#include <gmock/gmock.h>
#include <AVSCommon/Utils/PromiseFuturePair.h>
#include <AVSCommon/Utils/Timing/Stopwatch.h>
#include "acsdkAudioPlayer/ProgressTimer.h"
Include dependency graph for ProgressTimerTest.cpp:

Classes

class  alexaClientSDK::acsdkAudioPlayer::test::MockContext
 
class  alexaClientSDK::acsdkAudioPlayer::test::ProgressTimerTest
 

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::acsdkAudioPlayer
 
 alexaClientSDK::acsdkAudioPlayer::test
 

Functions

static void alexaClientSDK::acsdkAudioPlayer::test::verifyOffset (std::chrono::milliseconds expected, std::chrono::milliseconds received)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (ProgressTimerTest, test_noDelayOrInterval)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (ProgressTimerTest, test_zeroInterval)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (ProgressTimerTest, test_justDelay)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (ProgressTimerTest, test_justInterval)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (ProgressTimerTest, test_delayAndInterval)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (ProgressTimerTest, test_pause)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (ProgressTimerTest, test_resumeDoesNotRepeat)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (ProgressTimerTest, testTimer_offsets)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (ProgressTimerTest, test_delayAndIntervalCoincide)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (ProgressTimerTest, test_updateInterval)
 
 alexaClientSDK::acsdkAudioPlayer::test::TEST_F (ProgressTimerTest, test_updateIntervalAfterStop)
 

Variables

static const std::chrono::milliseconds alexaClientSDK::acsdkAudioPlayer::test::MILLIS_10 {10}
 10 millisecond delay or interval value. More...
 
static const std::chrono::milliseconds alexaClientSDK::acsdkAudioPlayer::test::MILLIS_25 {25}
 25 millisecond delay or interval value (something not an interval of MILLIS_10). More...
 
static const std::chrono::milliseconds alexaClientSDK::acsdkAudioPlayer::test::MILLIS_100 {100}
 100 millisecond duration to allow ProgressTimer to misbehave. More...
 
static const std::chrono::seconds alexaClientSDK::acsdkAudioPlayer::test::FAIL_TIMEOUT {5}
 5 second timer to allow plenty of time for expected behaviors to be detected. More...
 
static const std::chrono::milliseconds alexaClientSDK::acsdkAudioPlayer::test::OFFSET_TEST_DELAY {300}
 Delay value to use for test to verify offsets. More...
 
static const std::chrono::milliseconds alexaClientSDK::acsdkAudioPlayer::test::OFFSET_TEST_INTERVAL {500}
 Interval value to use for test to verify offsets. More...
 
static const std::chrono::milliseconds alexaClientSDK::acsdkAudioPlayer::test::LOWER_ERROR {100}
 Amount an offset can be less than expected and still be acceptable. More...
 
static const std::chrono::milliseconds alexaClientSDK::acsdkAudioPlayer::test::UPPER_ERROR {200}
 Amount an offset can be greater than expected and still be acceptable. More...
 

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0