AlexaClientSDK  1.25.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Macros | Functions | Variables
AlexaCommunicationsLibraryTest.cpp File Reference
#include <future>
#include <fstream>
#include <chrono>
#include <gtest/gtest.h>
#include <ACL/AVSConnectionManager.h>
#include <AVSCommon/AVS/Attachment/AttachmentManager.h>
#include <AVSCommon/AVS/Attachment/InProcessAttachment.h>
#include <CBLAuthDelegate/SQLiteCBLAuthDelegateStorage.h>
#include <ContextManager/ContextManager.h>
#include "Integration/ACLTestContext.h"
#include "Integration/ClientMessageHandler.h"
#include "Integration/ConnectionStatusObserver.h"
#include "Integration/ObservableMessageRequest.h"
Include dependency graph for AlexaCommunicationsLibraryTest.cpp:

Classes

class  alexaClientSDK::integration::test::AlexaCommunicationsLibraryTest
 

Namespaces

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

Macros

#define RECOGNIZE_EVENT_JSON(PROFILE)
 

Functions

 alexaClientSDK::integration::test::TEST_F (AlexaCommunicationsLibraryTest, test_sendEvent)
 
 alexaClientSDK::integration::test::TEST_F (AlexaCommunicationsLibraryTest, test_sendInvalidEvent)
 
 alexaClientSDK::integration::test::TEST_F (AlexaCommunicationsLibraryTest, test_sendEventWithAttachment)
 
 alexaClientSDK::integration::test::TEST_F (AlexaCommunicationsLibraryTest, test_sendEventAndReceiveDirective)
 
 alexaClientSDK::integration::test::TEST_F (AlexaCommunicationsLibraryTest, test_sendEventsSerially)
 
 alexaClientSDK::integration::test::TEST_F (AlexaCommunicationsLibraryTest, test_sendEventsConcurrently)
 
 alexaClientSDK::integration::test::TEST_F (AlexaCommunicationsLibraryTest, test_receiveDirectiveOnDownchannel)
 
 alexaClientSDK::integration::test::TEST_F (AlexaCommunicationsLibraryTest, test_persistentConnection)
 
 alexaClientSDK::integration::test::TEST_F (AlexaCommunicationsLibraryTest, test_multipleConnectionStatusObservers)
 
int main (int argc, char **argv)
 

Variables

static const std::string alexaClientSDK::integration::test::SYNCHRONIZE_STATE_JSON
 This is a basic synchronize JSON message which may be used to initiate a connection with AVS. More...
 
static const std::string alexaClientSDK::integration::test::BAD_SYNCHRONIZE_STATE_JSON = "{"
 This is a partial JSON string that should not be parseable. More...
 
static const std::string alexaClientSDK::integration::test::CT_RECOGNIZE_EVENT_JSON = RECOGNIZE_EVENT_JSON(CLOSE_TALK)
 This string specifies a Recognize event using the CLOSE_TALK profile. More...
 
static const std::string alexaClientSDK::integration::test::NF_RECOGNIZE_EVENT_JSON = RECOGNIZE_EVENT_JSON(NEAR_FIELD)
 This string specifies a Recognize event using the NEAR_FIELD profile. More...
 
static const std::string alexaClientSDK::integration::test::EXPECT_SPEECH_TIMED_OUT_EVENT_JSON
 This string specifies an ExpectSpeechTimedOut event. More...
 
static const std::string alexaClientSDK::integration::test::RECOGNIZE_AUDIO_FILE_NAME = "recognize_test.wav"
 This is a 16 bit 16 kHz little endian linear PCM audio file containing a recognized message for AVS. More...
 
static const std::string alexaClientSDK::integration::test::SILENCE_AUDIO_FILE_NAME = "silence_test.wav"
 This is a 16 bit 16 kHz little endian linear PCM audio file containing several seconds of silence. More...
 
static const int alexaClientSDK::integration::test::MAX_CONCURRENT_STREAMS = 9
 
static std::string alexaClientSDK::integration::test::g_configPath
 Path to the AlexaClientSDKConfig.json file (from command line arguments). More...
 
static std::string alexaClientSDK::integration::test::g_inputPath
 Path to resources (e.g. audio files) for tests (from command line arguments). More...
 

Macro Definition Documentation

◆ RECOGNIZE_EVENT_JSON

#define RECOGNIZE_EVENT_JSON (   PROFILE)

This string specifies a Recognize event using the specified profile.

CLOSE_TALK performs end-of-speech detection on the client, so a stop-capture directive will not be received from AVS. NEAR_FIELD performs end-of-speech detection in AVS, so a stop-capture directive will be received from AVS.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

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