![]() |
AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <chrono>
#include <deque>
#include <iostream>
#include <mutex>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <acsdkManufactory/Annotated.h>
#include <ADSL/DirectiveSequencer.h>
#include <ADSL/MessageInterpreter.h>
#include <AFML/FocusManager.h>
#include <AVSCommon/AVS/Attachment/InProcessAttachmentReader.h>
#include <AVSCommon/AVS/Attachment/InProcessAttachmentWriter.h>
#include <AVSCommon/AVS/BlockingPolicy.h>
#include <AVSCommon/Utils/JSON/JSONUtils.h>
#include <AVSCommon/Utils/LibcurlUtils/HTTPContentFetcherFactory.h>
#include <AVSCommon/SDKInterfaces/DirectiveHandlerInterface.h>
#include <AVSCommon/SDKInterfaces/Endpoints/MockEndpointCapabilitiesRegistrar.h>
#include <AVSCommon/Utils/Logger/LogEntry.h>
#include <AVSCommon/Utils/Metrics/MockMetricRecorder.h>
#include <acsdkInteractionModel/InteractionModelCapabilityAgent.h>
#include <acsdkInteractionModel/InteractionModelNotifier.h>
#include <SpeechSynthesizer/SpeechSynthesizer.h>
#include "Integration/ACLTestContext.h"
#include "Integration/ObservableMessageRequest.h"
#include "Integration/TestDirectiveHandler.h"
#include "Integration/TestExceptionEncounteredSender.h"
#include "Integration/TestMessageSender.h"
#include "Integration/TestSpeechSynthesizerObserver.h"
#include "Integration/TestMediaPlayer.h"
Classes | |
class | alexaClientSDK::integration::test::TestClient |
A test observer that mocks out the ChannelObserverInterface#onFocusChanged() call. More... | |
class | alexaClientSDK::integration::test::SpeechSynthesizerTest |
Namespaces | |
alexaClientSDK | |
Whether or not curl logs should be emitted. | |
alexaClientSDK::integration | |
alexaClientSDK::integration::test | |
Macros | |
#define | RECOGNIZE_EVENT_JSON(PROFILE, DIALOG_REQUEST_ID) |
#define | FIRST_DIALOG_REQUEST_ID "DialogRequestID123" |
#define | SECOND_DIALOG_REQUEST_ID "DialogRequestID456" |
#define | LX(event) alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event) |
Functions | |
static const std::chrono::seconds | alexaClientSDK::integration::test::WAIT_FOR_TIMEOUT_DURATION (15) |
static const std::chrono::seconds | alexaClientSDK::integration::test::SEND_EVENT_TIMEOUT_DURATION (20) |
static const std::chrono::seconds | alexaClientSDK::integration::test::DIRECTIVE_TIMEOUT_DURATION (7) |
static const std::chrono::seconds | alexaClientSDK::integration::test::WANTING_TIMEOUT_DURATION (1) |
static const std::chrono::seconds | alexaClientSDK::integration::test::WAIT_FOR_MEDIA_PLAYER_TIMEOUT_DURATION (60) |
static const std::string | alexaClientSDK::integration::test::TAG ("SpeechSynthesizerIntegrationTest") |
String to identify log entries originating from this file. More... | |
alexaClientSDK::integration::test::TEST_F (SpeechSynthesizerTest, DISABLED_test_handleMultipleConsecutiveSpeaks) | |
alexaClientSDK::integration::test::TEST_F (SpeechSynthesizerTest, test_bargeInOnOneSpeech) | |
alexaClientSDK::integration::test::TEST_F (SpeechSynthesizerTest, test_bargeInOnMultipleSpeaksAtTheBeginning) | |
alexaClientSDK::integration::test::TEST_F (SpeechSynthesizerTest, DISABLED_test_bargeInOnMultipleSpeaksInTheMiddle) | |
alexaClientSDK::integration::test::TEST_F (SpeechSynthesizerTest, test_multiturnScenario) | |
alexaClientSDK::integration::test::TEST_F (SpeechSynthesizerTest, test_handleNoDirectives) | |
int | main (int argc, char **argv) |
#define FIRST_DIALOG_REQUEST_ID "DialogRequestID123" |
#define LX | ( | event | ) | alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event) |
Create a LogEntry using this file's TAG and the specified event string.
The | event string for this LogEntry . |
#define RECOGNIZE_EVENT_JSON | ( | PROFILE, | |
DIALOG_REQUEST_ID | |||
) |
This string specifies a Recognize event using the specified profile.
CLOSE_TALK performs end-of-speech detection on the client, so no directive is sent from AVS to stop recording. NEAR_FIELD performs end-of-speech detection in AVS, so a directive is sent from AVS to stop recording.
#define SECOND_DIALOG_REQUEST_ID "DialogRequestID456" |
int main | ( | int | argc, |
char ** | argv | ||
) |
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0