AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Typedefs | Functions
SharedDataStreamTest.cpp File Reference
#include <algorithm>
#include <chrono>
#include <climits>
#include <functional>
#include <random>
#include <unordered_map>
#include <vector>
#include <gtest/gtest.h>
#include "AVSCommon/Utils/SDS/InProcessSDS.h"
#include "AVSCommon/Utils/Timing/Timer.h"
Include dependency graph for SharedDataStreamTest.cpp:

Classes

struct  alexaClientSDK::avsCommon::utils::sds::test::MinimalTraits
 
struct  alexaClientSDK::avsCommon::utils::sds::test::MinimalTraits2
 
class  alexaClientSDK::avsCommon::utils::sds::test::MinimalTraits::AtomicIndex
 An AtomicIndex type with the minimum functionality required by SDS. More...
 
class  alexaClientSDK::avsCommon::utils::sds::test::MinimalTraits::AtomicBool
 An AtomicBool type with the minimum functionality required by SDS. More...
 
class  alexaClientSDK::avsCommon::utils::sds::test::MinimalTraits::Buffer
 A Buffer type with the minimum functionality required by SDS. More...
 
class  alexaClientSDK::avsCommon::utils::sds::test::MinimalTraits::Mutex
 A Mutex type with the minimum functionality required by SDS. More...
 
class  alexaClientSDK::avsCommon::utils::sds::test::MinimalTraits::ConditionVariable
 A ConditionVariable type with the minimum functionality required by SDS. More...
 
class  alexaClientSDK::avsCommon::utils::sds::test::Source
 A data source class which can generate an aribrary amount of data at a specified rate and block size. More...
 
class  alexaClientSDK::avsCommon::utils::sds::test::Sink
 A data sink class which can read and verify an aribrary amount of data at a specified rate and block size. More...
 
class  alexaClientSDK::avsCommon::utils::sds::test::SharedDataStreamTest
 The test harness for the tests below. More...
 

Namespaces

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

Typedefs

using alexaClientSDK::avsCommon::utils::sds::test::Sds = SharedDataStream< MinimalTraits >
 For brevity in the tests below, alias an SDS type which uses MinimalTraits. More...
 

Functions

 alexaClientSDK::avsCommon::utils::sds::test::TEST_F (SharedDataStreamTest, test_sdsCalculateCreateSize)
 This tests SharedDataStream::calculateCreateSize() and SharedDataStream::create(). More...
 
 alexaClientSDK::avsCommon::utils::sds::test::TEST_F (SharedDataStreamTest, test_sdsOpen)
 This tests SharedDataStream::open(). More...
 
 alexaClientSDK::avsCommon::utils::sds::test::TEST_F (SharedDataStreamTest, test_createWriter)
 This tests SharedDataStream::createWriter(). More...
 
 alexaClientSDK::avsCommon::utils::sds::test::TEST_F (SharedDataStreamTest, test_createReader)
 This tests SharedDataStream::createReader(). More...
 
 alexaClientSDK::avsCommon::utils::sds::test::TEST_F (SharedDataStreamTest, test_createReaderWhileWriting)
 
 alexaClientSDK::avsCommon::utils::sds::test::TEST_F (SharedDataStreamTest, DISABLED_test_readerRead)
 This tests SharedDataStream::Reader::read(). More...
 
 alexaClientSDK::avsCommon::utils::sds::test::TEST_F (SharedDataStreamTest, test_readerSeek)
 This tests SharedDataStream::Reader::seek(). More...
 
 alexaClientSDK::avsCommon::utils::sds::test::TEST_F (SharedDataStreamTest, test_readerTell)
 This tests SharedDataStream::Reader::tell(). More...
 
 alexaClientSDK::avsCommon::utils::sds::test::TEST_F (SharedDataStreamTest, test_readerClose)
 This tests SharedDataStream::Reader::close(). More...
 
 alexaClientSDK::avsCommon::utils::sds::test::TEST_F (SharedDataStreamTest, test_readerGetId)
 This tests SharedDataStream::Reader::getId(). More...
 
 alexaClientSDK::avsCommon::utils::sds::test::TEST_F (SharedDataStreamTest, test_readerGetWordSize)
 This tests SharedDataStream::Reader::getWordSize(). More...
 
 alexaClientSDK::avsCommon::utils::sds::test::TEST_F (SharedDataStreamTest, test_writerWrite)
 This tests SharedDataStream::Writer::write(). More...
 
 alexaClientSDK::avsCommon::utils::sds::test::TEST_F (SharedDataStreamTest, test_writerTell)
 This tests SharedDataStream::Writer::tell(). More...
 
 alexaClientSDK::avsCommon::utils::sds::test::TEST_F (SharedDataStreamTest, test_writerClose)
 This tests SharedDataStream::Writer::close(). More...
 
 alexaClientSDK::avsCommon::utils::sds::test::TEST_F (SharedDataStreamTest, test_writerGetWordSize)
 This tests SharedDataStream::Writer::getWordSize(). More...
 
 alexaClientSDK::avsCommon::utils::sds::test::TEST_F (SharedDataStreamTest, DISABLED_testTimer_concurrencyNonblockableWriterDualReader)
 This tests a nonblockable, slow Writer streaming concurrently to two fast Readers (one of each type). More...
 
 alexaClientSDK::avsCommon::utils::sds::test::TEST_F (SharedDataStreamTest, test_concurrencyAllOrNothingWriterNonblockingReader)
 This tests an all-or-nothing, fast Writer streaming concurrently to a slow non-blocking Reader. More...
 
 alexaClientSDK::avsCommon::utils::sds::test::TEST_F (SharedDataStreamTest, test_concurrencyMultipleSds)
 This tests a Writer from one SDS streaming to a Reader from a different SDS, usig a shared Buffer. More...
 
 alexaClientSDK::avsCommon::utils::sds::test::TEST_F (SharedDataStreamTest, test_writerClosedBeforeWriting)
 This tests that a Reader closes if a Writer is attached and closed before writing anything. More...
 
 alexaClientSDK::avsCommon::utils::sds::test::TEST_F (SharedDataStreamTest, test_writerClosedBeforeAttachingReader)
 This tests that a Reader closes if a Writer is attached and closed before the Reader is first attached. More...
 
 alexaClientSDK::avsCommon::utils::sds::test::TEST_F (SharedDataStreamTest, test_firstReaderCanSeekSDSBeginning)
 

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