AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Namespaces | Functions | Variables
ExecutorTest.cpp File Reference
#include <chrono>
#include <condition_variable>
#include <gtest/gtest.h>
#include <list>
#include <mutex>
#include <system_error>
#include <thread>
#include "ExecutorTestUtils.h"
#include "AVSCommon/Utils/Threading/Executor.h"
#include "AVSCommon/Utils/WaitEvent.h"
Include dependency graph for ExecutorTest.cpp:

Classes

class  alexaClientSDK::avsCommon::utils::threading::test::ExecutorTest
 
struct  alexaClientSDK::avsCommon::utils::threading::test::SlowDestructor
 Used by futureWaitsForTaskCleanup delay and timestamp the time of lambda parameter destruction. More...
 

Namespaces

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

Functions

 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, testTimer_submitStdFunctionAndVerifyExecution)
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, testTimer_submitStdBindAndVerifyExecution)
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, testTimer_submitLambdaAndVerifyExecution)
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, testTimer_submitFunctionPointerAndVerifyExecution)
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, testTimer_submitFunctorAndVerifyExecution)
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, testTimer_submitFunctionWithPrimitiveReturnTypeNoArgsAndVerifyExecution)
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, testTimer_submitFunctionWithObjectReturnTypeNoArgsAndVerifyExecution)
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, testTimer_submitFunctionWithNoReturnTypePrimitiveArgsAndVerifyExecution)
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, testTimer_submitFunctionWithNoReturnTypeObjectArgsAndVerifyExecution)
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, testTimer_submitFunctionWithPrimitiveReturnTypeObjectArgsAndVerifyExecution)
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, testTimer_submitFunctionWithObjectReturnTypePrimitiveArgsAndVerifyExecution)
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, testTimer_submitFunctionWithPrimitiveReturnTypePrimitiveArgsAndVerifyExecution)
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, testTimer_submitFunctionWithObjectReturnTypeObjectArgsAndVerifyExecution)
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, testTimer_submitToFront)
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, testTimer_executionOrderEqualToSubmitOrder)
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, testTimer_futureWaitsForTaskCleanup)
 This test verifies that the executor waits to fulfill its promise until after the task is cleaned up. More...
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, testTimer_shutdown)
 This test verifies that the shutdown function completes the current task and does not accept new tasks. More...
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, testTimer_pushAfterExecutordownFail)
 Test that calling submit after shutdown will fail the job. More...
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, testTimer_shutdownCancelJob)
 Test that shutdown cancel jobs in the queue. More...
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, test_forwardPromise)
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, test_taskException)
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, test_executeEmptyMove)
 Verify that empty function is not accepted by executor using movable function. More...
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, test_executeEmptyRef)
 Verify that empty function is not accepted by executor using const reference function. More...
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, test_executeLambdaMove)
 Verify that after task execution, the lambda is released if movable function is used. More...
 
 alexaClientSDK::avsCommon::utils::threading::test::TEST_F (ExecutorTest, test_executeLambdaRef)
 Verify that after task execution, the lambda is not released if movable function is not used. More...
 

Variables

static const std::chrono::seconds alexaClientSDK::avsCommon::utils::threading::test::EXECUTOR_SIGNAL_WAIT_TIMEOUT {30}
 Maximum timeout for blocking wait when expecting a signal. More...
 

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