![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <TestTimingAdapterFactory.h>
Public Member Functions | |
TestTimingAdapterFactory () | |
~TestTimingAdapterFactory () | |
std::shared_ptr< MockCaptionTimingAdapter > | getMockTimingAdapter () |
CaptionParserInterface methods | |
std::shared_ptr< CaptionTimingAdapterInterface > | getTimingAdapter (std::shared_ptr< CaptionPresenterInterface > presenter) const |
![]() | |
TimingAdapterFactory (std::shared_ptr< DelayInterface > delayInterface=nullptr) | |
virtual | ~TimingAdapterFactory ()=default |
A concrete implementation of TimingAdapterFactory that returns a MockCaptionTimingAdapter that is known ahead of time for testing purposes.
|
inline |
alexaClientSDK::captions::test::TestTimingAdapterFactory::~TestTimingAdapterFactory | ( | ) |
std::shared_ptr< MockCaptionTimingAdapter > alexaClientSDK::captions::test::TestTimingAdapterFactory::getMockTimingAdapter | ( | ) |
Getter for the mock timing adapter that would be returned by the TimingAdapterFactory instance. If the mock adapter is null, then one is created and then returned. This function is provided so that the EXPECT_CALL can be used on the mock that is later going to be used by the getTimingAdapter
function.
|
virtual |
Factory function that returns ready-to-use timing adapters.
presenter | The presenter instance to be used when producing timing adapters. |
CaptionTimingAdapter
as a std::shared_ptr
. Reimplemented from alexaClientSDK::captions::TimingAdapterFactory.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0