AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Variables
MockContentFetcher.h File Reference
#include <string>
#include <vector>
#include <unordered_map>
#include <AVSCommon/SDKInterfaces/HTTPContentFetcherInterface.h>
Include dependency graph for MockContentFetcher.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  alexaClientSDK::playlistParser::test::MockContentFetcher
 A mock content fetcher. More...
 

Namespaces

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

Variables

static const auto alexaClientSDK::playlistParser::test::SHORT_TIMEOUT = std::chrono::milliseconds(100)
 Short time out for when callbacks are expected not to occur. More...
 
static const std::string alexaClientSDK::playlistParser::test::TEST_M3U_PLAYLIST_URL {"http://sanjayisthecoolest.com/sample.m3u"}
 Test M3U url. More...
 
static const std::string alexaClientSDK::playlistParser::test::TEST_M3U_PLAYLIST_CONTENT
 
static const size_t alexaClientSDK::playlistParser::test::TEST_M3U_PLAYLIST_URL_EXPECTED_PARSES = 2
 
static const std::vector< std::chrono::milliseconds > alexaClientSDK::playlistParser::test::TEST_M3U_DURATIONS
 
static const std::vector< std::string > alexaClientSDK::playlistParser::test::TEST_M3U_PLAYLIST_URLS
 
static const std::string alexaClientSDK::playlistParser::test::TEST_M3U_RELATIVE_PLAYLIST_URL {"http://sanjayisthecoolest.com/sampleRelativeUrls.m3u"}
 Test M3U url with relative urls within. More...
 
static const std::string alexaClientSDK::playlistParser::test::TEST_M3U_RELATIVE_PLAYLIST_CONTENT
 
static const size_t alexaClientSDK::playlistParser::test::TEST_M3U_RELATIVE_PLAYLIST_URL_EXPECTED_PARSES = 2
 
static const std::vector< std::string > alexaClientSDK::playlistParser::test::TEST_M3U_RELATIVE_PLAYLIST_URLS
 
static const std::string alexaClientSDK::playlistParser::test::TEST_HLS_PLAYLIST_URL {"http://sanjayisthecoolest.com/sample.m3u8"}
 A test playlist in HLS format. More...
 
static const std::string alexaClientSDK::playlistParser::test::TEST_HLS_PLAYLIST_CONTENT
 
static const size_t alexaClientSDK::playlistParser::test::TEST_HLS_PLAYLIST_URL_EXPECTED_PARSES = 15
 
static const std::vector< std::string > alexaClientSDK::playlistParser::test::TEST_HLS_PLAYLIST_URLS
 
static const std::vector< std::chrono::milliseconds > alexaClientSDK::playlistParser::test::TEST_HLS_DURATIONS
 
static const std::string alexaClientSDK::playlistParser::test::TEST_PLS_PLAYLIST_URL {"http://sanjayisthecoolest.com/sample3.pls"}
 A test playlist in PLS format. More...
 
static const std::string alexaClientSDK::playlistParser::test::TEST_PLS_CONTENT
 
static const size_t alexaClientSDK::playlistParser::test::TEST_PLS_PLAYLIST_URL_EXPECTED_PARSES = 2
 
static const std::vector< std::string > alexaClientSDK::playlistParser::test::TEST_PLS_PLAYLIST_URLS
 
static const std::string alexaClientSDK::playlistParser::test::TEST_HLS_LIVE_STREAM_PLAYLIST_URL {"http://sanjayisthecoolest.com/liveStream.m3u8"}
 A test playlist in HLS format. More...
 
static const std::string alexaClientSDK::playlistParser::test::TEST_HLS_LIVE_STREAM_PLAYLIST_CONTENT_1
 
static const std::string alexaClientSDK::playlistParser::test::TEST_HLS_LIVE_STREAM_PLAYLIST_CONTENT_2
 
static const size_t alexaClientSDK::playlistParser::test::TEST_HLS_LIVE_STREAM_PLAYLIST_EXPECTED_PARSES = 5
 
static const std::vector< std::string > alexaClientSDK::playlistParser::test::TEST_HLS_LIVE_STREAM_PLAYLIST_URLS
 
static const std::vector< std::chrono::milliseconds > alexaClientSDK::playlistParser::test::TEST_HLS_LIVE_STREAM_DURATIONS
 
static const size_t alexaClientSDK::playlistParser::test::NUM_PARSES_EXPECTED_WHEN_NO_PARSING = 1
 
static const std::string alexaClientSDK::playlistParser::test::TEST_MEDIA_URL = "https://sanjay.com/some_media.mp3"
 
static const std::unordered_map< std::string, std::string > alexaClientSDK::playlistParser::test::urlsToContentTypes
 
static std::unordered_map< std::string, std::string > alexaClientSDK::playlistParser::test::urlsToContent
 

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