AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Public Member Functions | List of all members
alexaClientSDK::playlistParser::test::TestParserObserver Class Reference
Inheritance diagram for alexaClientSDK::playlistParser::test::TestParserObserver:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::playlistParser::test::TestParserObserver:
Collaboration graph
[legend]

Classes

struct  ParseResult
 A struct used for bookkeeping of parse results. More...
 

Public Member Functions

void onPlaylistEntryParsed (int requestId, PlaylistEntry entry)
 
std::vector< ParseResultwaitForNCallbacks (size_t numCallbacksExpected, std::chrono::milliseconds timeout=SHORT_TIMEOUT)
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::utils::playlistParser::PlaylistParserObserverInterface
virtual ~PlaylistParserObserverInterface ()=default
 

Detailed Description

Mock AttachmentReader.

Member Function Documentation

◆ onPlaylistEntryParsed()

void alexaClientSDK::playlistParser::test::TestParserObserver::onPlaylistEntryParsed ( int  requestId,
PlaylistEntry  playlistEntry 
)
inlinevirtual

Notification that an entry has been parsed.

Parameters
requestIdThe id of the callback to connect this callback to an original request.
playlistEntryThe parsing result. The url field will be valid if parseResult is different than ERROR.
Note
This function is always called from a single thread in PlayListParser.

Implements alexaClientSDK::avsCommon::utils::playlistParser::PlaylistParserObserverInterface.

◆ waitForNCallbacks()

std::vector<ParseResult> alexaClientSDK::playlistParser::test::TestParserObserver::waitForNCallbacks ( size_t  numCallbacksExpected,
std::chrono::milliseconds  timeout = SHORT_TIMEOUT 
)
inline

Waits for the PlaylistParserObserverInterface#onPlaylistEntryParsed() call N times.

Parameters
numCallbacksExpectedThe number of callbacks expected.
timeoutThe amount of time to wait for the calls.
Returns
The parse results that actually occurred.

The documentation for this class was generated from the following file:

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