AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Macros | Functions | Variables
NetworkIntegrationTest.cpp File Reference
#include <chrono>
#include <fstream>
#include <stdlib.h>
#include <unistd.h>
#include <gtest/gtest.h>
#include <ACL/AVSConnectionManager.h>
#include <AVSCommon/AVS/MessageRequest.h>
#include <AVSCommon/Utils/Logger/Logger.h>
#include <ContextManager/ContextManager.h>
#include "Integration/ACLTestContext.h"
#include "Integration/ConnectionStatusObserver.h"
#include "Integration/JsonHeader.h"
#include "Integration/ObservableMessageRequest.h"
Include dependency graph for NetworkIntegrationTest.cpp:

Classes

class  alexaClientSDK::integration::test::NetworkIntegrationTests
 

Namespaces

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

Macros

#define LX(event)   alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)
 

Functions

static const std::string alexaClientSDK::integration::test::TAG ("NetworkIntegrationTests")
 
 alexaClientSDK::integration::test::TEST_F (NetworkIntegrationTests, test_connectAfterSlowConnection)
 
 alexaClientSDK::integration::test::TEST_F (NetworkIntegrationTests, test_connectBeforeSlowConnection)
 
 alexaClientSDK::integration::test::TEST_F (NetworkIntegrationTests, test_reConnectAfterDelay)
 
 alexaClientSDK::integration::test::TEST_F (NetworkIntegrationTests, test_sendEventAfterDelayPass)
 
 alexaClientSDK::integration::test::TEST_F (NetworkIntegrationTests, test_sendEventAfterDelayFails)
 
int main (int argc, char **argv)
 

Variables

static const std::string alexaClientSDK::integration::test::DELAY_TIME = "1000ms"
 Amount of Delay in milliseconds to be added. More...
 
static const std::string alexaClientSDK::integration::test::LONG_DELAY_TIME = "40000ms"
 Amount of Delay for causing a TIMEDOUT status in MessageRequest. More...
 
static const int alexaClientSDK::integration::test::TIMEOUT_FOR_SEND_IN_SECONDS = 10
 The time to wait for expected message status on sending the message. More...
 
static const int alexaClientSDK::integration::test::LONG_TIMEOUT_FOR_SEND_IN_SECONDS = 40
 The time to wait for expected message status when delay is longer. More...
 
std::string alexaClientSDK::integration::test::network_interface
 The network interface specified for the delay to be added. More...
 

Macro Definition Documentation

◆ LX

#define LX (   event)    alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

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