![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Public Member Functions | |
void | play () |
void | pause () |
void | resume () |
void | stop () |
void | callOnProgress () |
Test methods | |
void | SetUp () override |
![]() | |
virtual | ~Test () |
Public Attributes | |
std::shared_ptr< MockContext > | m_mockContext |
The MockContext with which to monitor m_timer's behavior. More... | |
ProgressTimer | m_timer |
The ProgressTimer to test. More... | |
Stopwatch | m_stopwatch |
A stopwatch with which to generate offsets. More... | |
Additional Inherited Members | |
![]() | |
typedef internal::SetUpTestCaseFunc | SetUpTestCaseFunc |
typedef internal::TearDownTestCaseFunc | TearDownTestCaseFunc |
![]() | |
static void | SetUpTestCase () |
static void | TearDownTestCase () |
static bool | HasFatalFailure () |
static bool | HasNonfatalFailure () |
static bool | HasFailure () |
static void | RecordProperty (const std::string &key, const std::string &value) |
static void | RecordProperty (const std::string &key, int value) |
![]() | |
Test () | |
virtual void | TearDown () |
Test fixture for exercising ProgressTimer.
The player methods (i.e. play(), pause(), resume(), stop()) control reporting mock progress in the audio stream, and call ProgressTimer methods (rather than directly in the tests) to simplify the tests and assure proper ordering of ersatz player state and ProgressTimer calls.
void alexaClientSDK::acsdkAudioPlayer::test::ProgressTimerTest::callOnProgress | ( | ) |
Get the current offset in to the mock audio stream and call m_timer.onProgress() with it.
void alexaClientSDK::acsdkAudioPlayer::test::ProgressTimerTest::pause | ( | ) |
Pause the ProgressTimer and then the audio offset generator.
void alexaClientSDK::acsdkAudioPlayer::test::ProgressTimerTest::play | ( | ) |
Start the the audio offset generator and then the ProgressTimer.
void alexaClientSDK::acsdkAudioPlayer::test::ProgressTimerTest::resume | ( | ) |
Resume the audio offset generator and then the ProgressTimer.
|
overridevirtual |
Reimplemented from testing::Test.
void alexaClientSDK::acsdkAudioPlayer::test::ProgressTimerTest::stop | ( | ) |
Stop the ProgressTimer and then the offset generator.
std::shared_ptr<MockContext> alexaClientSDK::acsdkAudioPlayer::test::ProgressTimerTest::m_mockContext |
The MockContext with which to monitor m_timer's
behavior.
Stopwatch alexaClientSDK::acsdkAudioPlayer::test::ProgressTimerTest::m_stopwatch |
A stopwatch with which to generate offsets.
ProgressTimer alexaClientSDK::acsdkAudioPlayer::test::ProgressTimerTest::m_timer |
The ProgressTimer to test.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0