AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
HTTPContentTest.cpp File Reference
#include <future>
#include <memory>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "AVSCommon/Utils/HTTPContent.h"
#include <AVSCommon/Utils/Memory/Memory.h>
Include dependency graph for HTTPContentTest.cpp:

Classes

class  alexaClientSDK::avsCommon::utils::logger::test::HTTPContentTest
 

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::avsCommon
 
 alexaClientSDK::avsCommon::utils
 
 alexaClientSDK::avsCommon::utils::logger
 
 alexaClientSDK::avsCommon::utils::logger::test
 

Functions

 alexaClientSDK::avsCommon::utils::logger::test::TEST_F (HTTPContentTest, test_readStatusCodeSuccess)
 Test that isStatusCodeSuccess returns true for SUCCESS_STATUS_CODE. More...
 
 alexaClientSDK::avsCommon::utils::logger::test::TEST_F (HTTPContentTest, test_readStatusCodePartialContentSuccess)
 Test that isStatusCodeSuccess returns true for SUCCESS_PARTIAL_CONTENT_STATUS_CODE. More...
 
 alexaClientSDK::avsCommon::utils::logger::test::TEST_F (HTTPContentTest, test_readStatusCodeNotSuccess)
 Test that isStatusCodeSuccess returns false for BAD_STATUS_CODE. More...
 
 alexaClientSDK::avsCommon::utils::logger::test::TEST_F (HTTPContentTest, test_readStatusCodeMoreThanOnce)
 Test that we can use getStatusCode() to get the status code after using isStatusCodeSuccess(). More...
 
 alexaClientSDK::avsCommon::utils::logger::test::TEST_F (HTTPContentTest, test_readContentTypeMoreThanOnce)
 Test that we can use getContentType() to get the status code after using isStatusCodeSuccess(). More...
 
 alexaClientSDK::avsCommon::utils::logger::test::TEST_F (HTTPContentTest, test_getDataStream)
 Test that we can retrieve the attachment reader, even if it's nullptr. More...
 

Variables

static const long alexaClientSDK::avsCommon::utils::logger::test::SUCCESS_STATUS_CODE {200}
 A status code that represents success. More...
 
static const long alexaClientSDK::avsCommon::utils::logger::test::SUCCESS_PARTIAL_CONTENT_STATUS_CODE {206}
 A status code that represents partial content. More...
 
static const long alexaClientSDK::avsCommon::utils::logger::test::BAD_STATUS_CODE {0}
 A status code that represents failure. More...
 
static const std::string alexaClientSDK::avsCommon::utils::logger::test::TEST_CONTENT_TYPE {"unknown"}
 A content type. 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