AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
AttachmentReaderTest.cpp File Reference
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "../include/AVSCommon/AVS/Attachment/InProcessAttachmentReader.h"
#include "../include/AVSCommon/AVS/Attachment/AttachmentWriter.h"
#include "../include/AVSCommon/Utils/Threading/Executor.h"
#include "Common/Common.h"
Include dependency graph for AttachmentReaderTest.cpp:

Classes

class  alexaClientSDK::avsCommon::avs::test::AttachmentReaderTest
 

Namespaces

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

Functions

 alexaClientSDK::avsCommon::avs::test::TEST_F (AttachmentReaderTest, test_attachmentReaderWithInvalidSDS)
 
 alexaClientSDK::avsCommon::avs::test::TEST_F (AttachmentReaderTest, test_attachmentReaderWithBadSeekPosition)
 
 alexaClientSDK::avsCommon::avs::test::TEST_F (AttachmentReaderTest, test_attachmentReaderReadInOnePass)
 
 alexaClientSDK::avsCommon::avs::test::TEST_F (AttachmentReaderTest, test_attachmentReaderPartialRead)
 
 alexaClientSDK::avsCommon::avs::test::TEST_F (AttachmentReaderTest, test_attachmentReaderPartialReadWithSeek)
 
 alexaClientSDK::avsCommon::avs::test::TEST_F (AttachmentReaderTest, test_attachmentReaderMultipleReads)
 
 alexaClientSDK::avsCommon::avs::test::TEST_F (AttachmentReaderTest, test_attachmentReaderMultipleReadsOfUnfinishedData)
 
 alexaClientSDK::avsCommon::avs::test::TEST_F (AttachmentReaderTest, test_overrunResultsInError)
 
 alexaClientSDK::avsCommon::avs::test::TEST_F (AttachmentReaderTest, test_overrunResultsInReaderReset)
 

Variables

static const int alexaClientSDK::avsCommon::avs::test::TEST_SDS_SEEK_POSITION = TEST_SDS_BUFFER_SIZE_IN_BYTES - (TEST_SDS_PARTIAL_READ_AMOUNT_IN_BYTES + 10)
 A test seek position, defined in terms of above variables. More...
 
static const int alexaClientSDK::avsCommon::avs::test::TEST_SDS_BAD_SEEK_POSITION = TEST_SDS_BUFFER_SIZE_IN_BYTES + 1
 A test seek position which is bad. More...
 
static const int alexaClientSDK::avsCommon::avs::test::ATTACHMENT_READ_LOOP_TIMEOUT_MS = 5 * 1000
 Timeout for how long attachment reader loop can run while it is checking for certain status from read call. More...
 
static const int alexaClientSDK::avsCommon::avs::test::ATTACHMENT_READ_LOOP_WAIT_BETWEEN_READS_MS = 20
 Time to wait between each read call in reader loop. 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