AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
AbstractKeywordDetectorTest.cpp File Reference
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <memory>
#include <acsdkKWDInterfaces/KeywordDetectorStateNotifierInterface.h>
#include <acsdkKWDInterfaces/KeywordNotifierInterface.h>
#include <acsdkNotifierInterfaces/internal/MockNotifier.h>
#include <AVSCommon/AVS/AudioInputStream.h>
#include <AVSCommon/SDKInterfaces/KeyWordDetectorStateObserverInterface.h>
#include <AVSCommon/SDKInterfaces/KeyWordObserverInterface.h>
#include <AVSCommon/Utils/AudioFormat.h>
#include "acsdkKWDImplementations/AbstractKeywordDetector.h"
Include dependency graph for AbstractKeywordDetectorTest.cpp:

Classes

class  alexaClientSDK::acsdkKWDImplementations::test::MockKeyWordObserver
 A test observer that mocks out the KeyWordObserverInterface#onKeyWordDetected() call. More...
 
class  alexaClientSDK::acsdkKWDImplementations::test::MockStateObserver
 A test observer that mocks out the KeyWordDetectorStateObserverInterface#onStateChanged() call. More...
 
class  alexaClientSDK::acsdkKWDImplementations::test::MockKeywordNotifier
 A test KeywordNotifier. More...
 
class  alexaClientSDK::acsdkKWDImplementations::test::MockKeywordDetectorStateNotifier
 A test KeywordDetectorStateNotifier. More...
 
class  alexaClientSDK::acsdkKWDImplementations::test::MockKeyWordDetector
 
class  alexaClientSDK::acsdkKWDImplementations::test::AbstractKeyWordDetectorTest
 

Namespaces

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

Functions

 alexaClientSDK::acsdkKWDImplementations::test::TEST_F (AbstractKeyWordDetectorTest, test_addKeyWordObserver)
 
 alexaClientSDK::acsdkKWDImplementations::test::TEST_F (AbstractKeyWordDetectorTest, test_notifyKeyWordObserver)
 
 alexaClientSDK::acsdkKWDImplementations::test::TEST_F (AbstractKeyWordDetectorTest, test_removeKeyWordObserver)
 
 alexaClientSDK::acsdkKWDImplementations::test::TEST_F (AbstractKeyWordDetectorTest, test_addStateObserver)
 
 alexaClientSDK::acsdkKWDImplementations::test::TEST_F (AbstractKeyWordDetectorTest, test_notifyStateObserver)
 
 alexaClientSDK::acsdkKWDImplementations::test::TEST_F (AbstractKeyWordDetectorTest, test_removeStateObserver)
 
 alexaClientSDK::acsdkKWDImplementations::test::TEST_F (AbstractKeyWordDetectorTest, test_observersDontGetNotifiedOfSameStateTwice)
 
 alexaClientSDK::acsdkKWDImplementations::test::TEST_F (AbstractKeyWordDetectorTest, test_isByteSwappingRequired)
 
 alexaClientSDK::acsdkKWDImplementations::test::TEST_F (AbstractKeyWordDetectorTest, test_readFromStreamSuccessful)
 
 alexaClientSDK::acsdkKWDImplementations::test::TEST_F (AbstractKeyWordDetectorTest, test_readFromStreamWhileStreamClosed)
 
 alexaClientSDK::acsdkKWDImplementations::test::TEST_F (AbstractKeyWordDetectorTest, test_readFromStreamBufferOverrun)
 
 alexaClientSDK::acsdkKWDImplementations::test::TEST_F (AbstractKeyWordDetectorTest, test_readFromStreamTimedOut)
 

Variables

static constexpr std::chrono::milliseconds alexaClientSDK::acsdkKWDImplementations::test::TIMEOUT {1000}
 Reader timeout. More...
 
static constexpr size_t alexaClientSDK::acsdkKWDImplementations::test::TEST_BUFFER_SIZE {4096u}
 The size of reader buffer is one page long. More...
 
static constexpr ssize_t alexaClientSDK::acsdkKWDImplementations::test::ZERO_WORDS_READ = 0
 
static constexpr ssize_t alexaClientSDK::acsdkKWDImplementations::test::WORDS_TO_READ = 1
 

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